Part Number Hot Search : 
CS640525 UFR7280R 40220 D2570 TSSOP MAX1299 ADS6442 MAXIM
Product Description
Full Text Search
 

To Download N18-T3 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  addendum to use r's manual s ab 80c51 7 / 80c 5 3 7 05 .9 4 microcomputer components sab 80c517 a / 83c5 1 7a-5 8-bit cmos single-chip microcontroller
edition 05.94 this edition was realized using the software system framemaker a . published by siemens ag, bereich halbleiter, marketing- kommunikation, balanstra?e 73, 81541 mnchen ? siemens ag 1994. all rights reserved. attention please! as far as patents or other rights of third par- ties are concerned, liability is only assumed for components, not for applications, pro- cesses and circuits implemented within com- ponents or assemblies. the information describes the type of compo- nent and shall not be considered as assured characteristics. terms of delivery and rights to change design reserved. for questions on technology, delivery and prices please contact the semiconductor group offices in germany or the siemens companies and representatives worldwide (see address list). due to technical requirements components may contain dangerous substances. for in- formation on the types in question please contact your nearest siemens office, semi- conductor group. siemens ag is an approved cecc manufac- turer. packing please use the recycling operators known to you. we can also help you C get in touch with your nearest sales office. by agreement we will take packing material back, if it is sorted. you must bear the costs of transport. for packing material that is returned to us un- sorted or which we are not obliged to accept, we shall have to invoice you for any costs in- curred. components used in life-support devices or systems must be expressly authorized for such purpose! critical components 1 of the semiconductor group of siemens ag, may only be used in life-support devices or systems 2 with the ex- press written approval of the semiconductor group of siemens ag. 1 a critical component is a component used in a life-support device or system whose failure can reasonably be expected to cause the failure of that life-support de- vice or system, or to affect its safety or ef- fectiveness of that device or system. 2 life support devices or systems are in- tended (a) to be implanted in the human body, or (b) to support and/or maintain and sustain human life. if they fail, it is reasonable to assume that the health of the user may be endangered.
sab 80c517a/83c517a-5 revision history: 05.94 previous version: 11.92 page subjects (major changes since last revision 11.92) 3-8 4-1 5-3 5-10/5-11 s0rell adresses corrected hwpd pin number corrected t s / t c in table 5-1 corrected cc4en bit names and table 5-3 corrected device specifications sab 80c517a/83c517a-5 revision history: 05.94 previous releases: 01.94/08.93/11.92/10.91/04.91 page subjects (changes since last revision 04.91) 5 4 6-14 several 2 25,26,30 33 39 57 60 62 65 several 66 68 pin configuration p-mqfp-100-2 added pin differences updated pin numbers for p-mqfp-100-2 package added correction of p-mrfp-100 into p-mqfp-100-2 ordering information for C 40 to + 110 c versions correction of register names s0rell, scon, adcon, icron and sbuf figure 4 corrected figure 8 corrected pe /swd function description completed correct ordering numbers test condition for v oh , v oh1 corrected t pxiz name corrected t aviv , t azpl values corrected minimum clock frequence is now 3.5 mhz t qvwh (data setup before wr ) corrected and added t llax2 corrected page subjects (changes since last version 08.93) 25 51 65 67 74 corrected sfr name s0rell below termination of hwpd mode: 4th paragraph with ident corrected description of t lliv corrected program memory read cycle: f pxav added oscillator circuit drawings: mqfp-100-2 pin numbers added. page subjects (changes since last revision 01.94) 47 minor changes on several pages table 6 corrected
80c517a/83c517a-5 semiconductor group contents page 1 introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-1 2 fundamental structure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-1 3 memory organization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-1 3.1 program memory, rom protection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-2 3.2 data memory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-3 3.3 special function registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-4 3.4 architecture for the xram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-9 3.4.1 accesses to xram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-9 3.4.2 control of xram in the sab 80c517a . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-15 3.4.3 behaviour of port0 and port2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-16 4 system reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-1 4.1 additional hardware power down mode in the sab 80c517a . . . . . . . . . . 4-1 4.2 hardware power down reset timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-4 4.3 fast internal reset after power-on . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-8 5 on-chip peripheral components . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-1 5.1 digital i/o port circuitry . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-1 5.2 10-bit a/d-converter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-3 5.3 additional compare mode for the concurrent compare unit . . . . . . . . . . . 5-8 5.4 new baud rate generators for serial channel 0 and serial channel 1 . . 5-14 5.4.1 serial channel 0 baud rate generator . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-14 5.4.2 serial channel 1 baud rate generator . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-17 5.5 modified oscillator watchdog unit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-19 6 interrupt system . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-1 6.1 additional interrupt for compare registers cm0 to cm7 . . . . . . . . . . . . . . . 6-1 6.2 interrupt structure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-4 6.3 priority level structure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-5 7 device specification . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-1
semiconductor group 1 - 1 1 introduction the sab 80c517a is a superset of the high end microcontroller sab 80c517. while maintaining all architectural and operational characteristics of the sab 80c517 the sab 80c517a incorporates more on-chip ram as well as some enhancements in the compare / capture unit. the oscillator watchdog got an improved functionality. also the operating frequency is higher than that of the sab 80c517. sab 80c517a / 83c517a-5 in this manual, any reference made to the sab 80c517a applies to both versions, the sab 80c517a and the sab 83c517a-5, unless otherwise noted. furthermore only new features of the sab 80c517a in addition to the features of the sab 80c517a/83c517a-5 are described. for additional reference, the users manual of the sab 80c517/80c537 (ord. no. b258-h6075-g1-x- 7600) should be used. introduction
semiconductor group 1 - 2 listed below is a summary of the main features of the sab 80c517a: the pin functions of the sab 80c517a are identical with those of the sab 80c517/80c537 with one exception: package sab 80c517a sab 80c517 / 80c537 plcc-84/60 pmrfp-100/72 hwpd v ss l sab 80c517a/83c517a-5, up to 18 mhz operation frequency l 32 k 8 rom (sab 83c517a-5 only, rom- protection available) l 256 8 on-chip ram l 2k 8 on-chip ram (xram) l superset of sab 80c51 architecture: C1 m s instruction cycle time at 12 mhz C 666 ns instruction cycle time at 18 mhz C 256 directly addressable bits C boolean processor C 64 kbyte external data and program memory addressing l four 16-bit timer/counters l powerful 16-bit compare/capture unit (ccu) with up to 21 high-speed or pwm output channels and 5 capture inputs l versatile "fail-safe" provisions l fast 32-bit division, 16-bit multiplication, 32- bit normalize and shift by peripheral mul/ div unit (mdu) l eight data pointers for external memory addressing l seventeen interrupt vectors, four priority levels selectable l genuine 10-bit a/d converter with 12 multiplexed inputs l two full duplex serial interfaces with programmable baudrate-generators l fully upward compatible with sab 80c515, sab 80c517, sab 80c515a l extended power saving modes l fast power-on reset l nine ports: 56 i/o lines, 12 input lines l three temperature ranges available: 0 to 70 c(t1) C 40 to + 85 c(t3) C 40 to + 110 c(t4) l plastic packages: p-lcc-84 p-mqfp-100-2 introduction
semiconductor group 2 - 1 2 fundamental structure the sab 80c517a/83c517a-5 is a high-end member of the siemens sab 8051 family of microcontrollers. it is designed in siemens acmos technology and based on the sab 8051 architecture. acmos is a technology which combines high-speed and density characteristics with low-power consumption or dissipation. while maintaining all the sab 80c517 features and operating characteristics the sab 80c517a is expanded in its "fail-safe" characteristics and timer capabilities. furthermore, the sab 80c517a additionally contains 2 kbyte of on-chip ram (called xram), a 10bit a/d converter with 12 multiplexed inputs, enhanced baud rate generators and the capabilities of the compare capture unit are improved. the sab 80c517a is identical with the sab 83c517a-5 except that it lacks the on-chip program memory. the sab 80c517a / 83c517a-5 is supplied in a 84-pin plastic leaded chip carrier package (p-lcc-84) and in a 100-pin plastic metric rectangular flat package (p-mrfp-100). the essential enhancements to the sab 80c517 are: C additional 2kbyte ram on chip. C 32 kbyte on-chip program memory (sab 83c517a-5 only) C 12-channel 10-bit a/d converter C additional compare mode for concurrent compare function at port 5; up to eight pins on p5 can be either set or reset on a compare match in two additional compare registers. C dedicated interrupt vector for the 16-bit compare registers cm0-cm7: interrupt requested on a compare match in one of the eight compare channels (eight request flags are available) C new baud rate generator for serial channel 0 C expanded baud rate range for serial channel 1 C hardware controlled power down mode C improved functionality of the oscillator watchdog C high speed operation of the device (up to 18 mhz crystal frequency) figure 2-1 shows a block diagram of the sab 80c517a fundamental structure
semiconductor group 2 - 2 figure 2-1, block diagram of the sab 80c517a fundamental structure
semiconductor group 3 - 1 memory organization 3 memory organization according to the sab 8051 architecture, the sab 80c517a has separate address spaces for program and data memory. figure 3-1 illustrates the mapping of address spaces. figure 3-1 memory map
semiconductor group 3 - 2 memory organization 3.1 program memory, rom protection the sab 83c517a-5 has 32 kbyte of on-chip rom, while the sab 80c517a has no internal rom. the program memory can externally be expanded up to 64 kbyte. pin ea controls whether program fetches below address 8000h are done from internal or external memory. as a new feature the sab 83c517a-5 offers the possibillity of protecting the internal rom against unauthorized access. this protection is implemented in the rom-mask. therefore, the decision rom-protection 'yes' or 'no' has to be made when delivering the rom-code. once enabled, there is no way of disabling the rom-protection. effect : the access to internal rom done by an externally fetched movc instruction is disabled. nevertheless, an access from internal rom to external rom is possible. to verify the read protected rom-code a special rom-verify-mode is implemented. this mode also can be used to verify unprotected internal rom. rom-protection rom-verification mode (see 'ac characteristics') restrictions no rom-verification mode 1 (standard 8051 verification mode) rom-verification mode 2 C yes rom-verification mode 2 C standard 8051 verification mode is disabled C externally applied movc accessing to internal rom is disabled
semiconductor group 3 - 3 memory organization 3.2 data memory the data memory space consists of an internal and an external memory space. the sab 80c517a contains another 2 kbyte of on-chip ram above the 256 bytes internal ram of the base type sab 80c517. this ram is called xram in this document. C external data memory up to 64 kbyte external data memory can be addressed by instructions that use 8-bit or 16- bit indirect addressing. for 8-bit addressing movx instructions in combination with registers r0 and r1 can be used. a 16-bit external memory addressing is supported by eight 16-bit datapointers. registers xpage and syscon are controlling whether data fetches at addresses f800 h to ffff h are done from internal xram or from external data memory. C internal data memory the internal data memory is divided into four physically distinct blocks: C the lower 128 bytes of ram including four banks containing eight registers each C the upper 128 byte of ram C the 128 byte special function register area C a 2kx8 area which is accessed like external ram (movx-instructions), called xram implemented on chip at the address range fromf800 h to ffff h . special function register syscon controls whether data is read or written (to) xram or external ram
semiconductor group 3 - 4 memory organization 3.3 special function registers all registers, except the program counter and the four general purpose register banks, reside in the special function register area. the 81 special function registers include arithmetic registers, pointers, and registers that provide an interface between the cpu and the on-chip peripherals. there are also 128 directly addressable bits within the sfr area. all special function registers are listed in table 3-1 and table 3-2 . in table 3-1 they are organized in numeric order of their addresses. in table 3-2 they are organized in groups which refer to the functional blocks of the sab 80c517a. table 3-1, special function register 1) : bit-addressable special function register address register contents after reset address register contents after reset 80 h 81 h 82 h 83 h 84 h 85 h 86 h 87 h p0 1) sp dpl dph (wdtl) (wdth) wdtrel pcon ff h 07 h 00 h 00 h C C 00 h 00 h a0 h a1 h a2 h a3 h a4 h a5 h a6 h a7 h p2 1) comsetl comseth comclrl comclrh setmsk cjrmsk C ff h 00 h 00 h 00 h 00 h 00 h 00 h C 88 h 89 h 8a h 8b h 8c h 8d h 8e h 8f h tcon 1) tmod tl0 tl1 th0 th1 C C 00 h 00 h 00 h 00 h 00 h 00 h C C a8 h a9 h aa h ab h ac h ad h ae h af h ien0 1) ip0 sorell C C C C C 00 h 00 h d9 h C C C C C 90 h 91 h 92 h 93 h 94 h 95 h 96 h 97 h p1 1) xpage dpsel C C C C C ff h 00 h xxxxx000 b C C C C C b0 h b1 h b2 h b3 h b4 h b5 h b6 h b7 h p3 1) syscon C C C C C C ff h xxxx xx01 b C C C C C C 98 h 99 h 9a h 9b h 9c h 9d h 9e h 9f h s0con 1) s0buf ien2 s1con s1buf s1rell C C 00 h xx h xx00 00x0 b 0x00 0000 b xx h 00 h C C b8 h b9 h ba h bb h bc h bd h be h bf h ien1 1) ip1 s0relh s1relh C C C C 00 h xx00 0000 b xxxx xx11 b xxxx xx11 b C C C C
semiconductor group 3 - 5 memory organization table 3-1, special function register (contd) 1) : bit-addressable special function register address register contents after reset address register contents after reset c0 h c1 h c2 h c3 h c4 h c5 h c6 h c7 h ircon0 1) ccen ccl1 cch1 ccl2 cch2 ccl3 cch3 00 h 00 h 00 h 00 h 00 h 00 h 00 h 00 h e0 h e1 h e2 h e3 h e4 h e5 h e6 h e7 h acc 1) ctcon cml3 cmh3 cml4 cmh4 cml5 cmh5 00 h 0x00 0000 b 00 h 00 h 00 h 00 h 00 h 00 h c8 h c9 h ca h cb h cc h cd h ce h cf h t2con 1) cc4en crcl crch tl2 th2 ccl4 cch4 00 h 00 h 00 h 00 h 00 h 00 h 00 h 00 h e8 h e9 h ea h eb h ec h ed h ee h ef h p4 1) md0 md1 md2 md3 md4 md5 arcon ff h xx h xx h xx h xx h xx h xx h 0xxx xxxx b d0 h d1 h d2 h d3 h d4 h d5 h d6 h d7 h psw 1) ircon1 cml0 cmh0 cml1 cmh1 cml2 cmh2 00 h 00 h 00 h 00 h 00 h 00 h 00 h 00 h f0 f1 h f2 h f3 h f4 h f5 h f6 h f7 h b 1) C cml6 cmh6 cml7 cmh7 cmen cmsel 00 h C 00 h 00 h 00 h 00 h 00 h 00 h d8 h d9 h da h db h dc h dd h de h df h adcon0 1) addath addatl p7 adcon1 p8 ctrell ctrelh 00 h 00 h 00 h xx h xxxx 0000 b xx h 00 h 00 h f8 h f9 h fa h fb h fc h fd h fe h ff h p5 1) C p6 C C C C C ff h C ff h C C C C C
semiconductor group 3 - 6 memory organization table 3-1, special function register (contd) 1) bit-addressable special function registers 2) this special function register is listed repeatedly since some bits of it also belong to other functional blocks. 3) x means that the value is indeterminate block symbol name address contents after reset xram xpage syscon page address. reg. for extended onchip ram xram control reg. 91 h b1 h 00 h xxxx xx01 b 3) cpu acc b dph dpl dpsel psw sp accumulator b-register data pointer, high byte data pointer, low byte data pointer select register program status word register stack pointer e0 h 1) f0 h 1) 83 h 82 h 92 h d0 h 1) 81 h 00 h 00 h 00 h 00 h xxxxx000 b 3) 00 h 07 h a/d- converter adcon0 adcon1 addath addatl a/d converter control register 0 a/d converter control register 1 a/d converter data register high byte a/d converter data register low byte d8 h 1) d h d9 h da h 00 h 00 h 00 h 00 h interrupt system ien0 ctcon 2) ien1 ien2 ip0 ip1 ircon0 ircon1 tcon 2) t2con 2) interrupt enable register 0 com. timer control register interrupt enable register 1 interrupt enable register 2 interrupt priority register 0 interrupt priority register 1 interrupt request control register interrupt request control register timer control register timer 2 control register a8 h 1) e1 h b8 h 1) 9a h a 9h b9 h c0 h 1) d1 h 88 h 1) 0c8 h 1) 00 h 0x00 0000 b 3) 00 h xx00 00x0 b 3) 00 h xx00 0000 b 00 h 00 h 00 h 00 h mul/div unit arcon md0 md1 md2 md3 md4 md5 arithmetic control register multiplication/division register 0 multiplication/division register 1 multiplication/division register 2 multiplication/division register 3 multiplication/division register 4 multiplication/division register 5 ef h e9 h ea h eb h ec h ed h ee h 0xxx xxxx b xx h xx h xx h xx h xx h xx h compare/ capture- unit (ccu), timer2 ccen cc4en cch1 cch2 cch3 cch4 ccl1 comp./capture enable reg. comp./capture 4 enable reg. comp./capture reg. 1, high byte comp./capture reg. 2, high byte comp./capture reg. 3, high byte comp./capture reg. 4, high byte comp./capture reg. 1, low byte c1 h c9 h c3 h c5 h c7 h cf h c2 h 00 h 00 h 00 h 00 h 00 h 00 h 00 h
semiconductor group 3 - 7 memory organization table 3-1, special function register 1) bit-addressable special function registers 2) this special function register is listed repeatedly since some bits of it also belong to other functional blocks. 3) x means that the value is indeterminate block symbol name address contents after reset compare/ capture- unit (ccu) (contd) ccl2 ccl3 ccl4 cmem cmh0 cmh1 cmh2 cmh3 cmh4 cmh5 cmh6 cmh7 cml0 cml1 cml2 cml3 cml4 cml5 cml6 cml7 cmsel crch crcl comsetl comseth comclrl comclrh setmsk clrmsk ctcon ctrelh ctrell th2 tl2 t2con comp./capture reg. 2, low byte comp./capture reg. 3, low byte comp./capture reg. 4, low byte compare enable register compare reg. 0, high byte compare reg. 1, high byte compare reg. 2, high byte compare reg. 3, high byte compare reg. 4, high byte compare reg. 5, high byte compare reg. 6, high byte compare reg. 7, high byte compare register 0, low byte compare register 1, low byte compare register 2, low byte compare register 3, low byte compare register 4, low byte compare register 5, low byte compare register 6, low byte compare register 7, low byte compare input select com./rel./capt. reg. high byte com./rel./capt. reg. low byte compare register, low byte compare register, high byte compare register, low byte compare register, high byte mask register, concerning comset mask register, concerning comclr com. timer control reg. com. timer rel. reg., high byte com. timer rel. reg., low byte timer 2, high byte timer 2, low byte timer 2 control register c4 h c6 h ce h f6 h d3 h d5 h d7 h e3 h e5 h e7 h f3 h f5 h d2 h d4 h d6 h e2 h e4 h e6 h f2 h f4 h f7 h cb h ca h a1 h a2 h a3 h a4 h a5 h a6 h e1 h df h de h cd h cc h c8 h 1) 00 h 00 h 00 h 00 h 00 h 00 h 00 h 00 h 00 h 00 h 00 h 00 h 00 h 00 h 00 h 00 h 00 h 00 h 00 h 00 h 00 h 00 h 00 h 00 h 00 h 00 h 00 h 00 h 00 h 0x00 0000 b 3) 00 h 00 h 00 h 00 h 00 h
semiconductor group 3 - 8 memory organization table 3-1, special function register 1) bit-addressable special function registers 2) this special function register is listed repeatedly since some bits of it also belong to other functional blocks. 3) x means that the value is indeterminate block symbol name address contents after reset ports p0 p1 p2 p3 p4 p5 p6 p7 p8 port 0 port 1 port 2 port 3 port 4 port 5 port 6 port 7, analog/digital input port 8, analog/digital input, 4-bit 80 h 1) 90 h 1) a0 h 1) b0 h 1) e8 h 1) f8 h 1) fa h db h dd h ff h ff h ff h ff h ff h ff h ff h C C pow. save modes pcon power control register 87h 00 h serial channels adcon0 2) pcon 2) s0buf s0con s0rell s0relh s1buf s1con s1rell s1relh a/d converter control reg. power control register serial channel 0 buffer reg. serial channel 0 control reg. serial channel 0 reload reg., low byte serial channel 0 reload reg., high byte serial channel 1 buffer reg. serial channel 1 control reg. serial channel 1 reload reg., low byte serial channel 1 reload reg., high byte d8 h 1) 87 h 99 h 98 h 1) 0aa h ba h 9c h 9b h 9d h bb h 00 h 00 h xx h 00 h d9 h xxxx xx11 b 3) xx h 3) 0x00 0000 b 3) 00 h xxxx xx11 b 3) timer 0/ timer 1 tcon th0 th1 tl0 tl1 tmod timer control register timer 0, high byte timer 1, high byte timer 0, low byte timer 1, low byte timer mode register 88 h 1) 8c h 8d h 8a h 8b h 89 h 00 h 00 h 00 h 00 h 00 h 00 h watchdog ien0 2) ien1 2) ip0 2) ip1 2) wdtrel interrupt enable register 0 interrupt enable register 1 interrupt priority register 0 interrupt priority register 1 watchdog timer reload reg. a8 h 1) b8 h 1) a9 h b9 h 86 h 00 h 00 h 00 h xx00 0000 b 3) 00 h
semiconductor group 3 - 9 memory organization 3.4 architecture for the xram the contents of the xram is not affected by a reset or hw power down. after power-up the contents is undefined, while it remains unchanged during and after a reset or hw power down if the power supply is not turned off. the additional on-chip ram is logically located in the "external data memory" range at the upper end of the 64 kbyte address range (f800 h -ffff h ). it is possible to enable and disable (only by reset) the xram. if it is disabled the device shows the same behaviour as the parts without xram, i.e. all movx accesses use the external bus to physically external data memory. 3.4.1 accesses to xram because the xram is used in the same way as external data memory the same instruction types must be used for accessing the xram. note: if a reset occurs during a write operation to xram, the effect on xram depends on the cycle which the reset is detected at (movx is a 2-cycle instruction): reset detection at cycle 1: the new value will not be written to xram. the old value is not affected. reset detection at cycle 2: the old value in xram is overwritten by the new value. accesses to xram using the dptr there are a read and a write instruction from and to xram which use one of the 16-bit dptr for indirect addressing. the instructions are: movx a, @dptr (read) movx @dptr, a (write) normally the use of these instructions would use a physically external memory. however, in the sab 80c517a the xram is accessed if it is enabled and if the dptr points to the xram address space (dptr 3 f800 h ).
semiconductor group 3 - 10 memory organization accesses to xram using the registers r0/r1 the 8051 architecture provides also instructions for access to external data memory range which use only an 8-bit address (indirect addressing with registers r0 or r1). the instructions are: movx a, @ ri (read) movx @ri, a (write) in application systems, either a real 8-bit bus (with 8-bit address) is used or port 2 serves as page register which selects pages of 256-byte. however, the distinction, whether port 2 is used as general purpose i/0 or as "page address" is made by the external system design. from the device's point of view it cannot be decided whether the port 2 data is used externally as address or as i/0 data! hence, a special page register is implemented into the sab 80c517a to provide the possibility of accessing the xram also with the movx @ri instructions, i.e. xpage serves the same function for the xram as port 2 for external data memory. special function register xpage the reset value of xpage is 00 h . xpage can be set and read by software. figures 3-2 to 3-4 show the dependencies of xpage- and port 2 - addressing in order to explain the differencies in accessing xram, ext. ram or what is to do when port 2 is used as an i/o-port. 76543210 msb lsb bit no. xpage addr. 91 h
semiconductor group 3 - 11 memory organization figure 3-2 write page address to port 2 mov p2, pageaddress will write the page address to port 2 and xpage-register. when external ram is to be accessed in the xram address range (f800 h - ffff h ) xram has to be disabled. when additional external ram is to be addressed in an address range xram (f800 h ) xram may remain being enabled and there is no need to overwrite xpage by a second move.
semiconductor group 3 - 12 memory organization figure 3-3 write page address to xpage the page address is only written to xpage-register. port 2 is available for addresses or i/o-data. see figure 3-4 to see what happens when port 2 is used as i/o-port.
semiconductor group 3 - 13 memory organization figure 3-4 use of port 2 as i/o-port at a write to port 2, xram address in xpage-register will be overwritten because of the concurrent write to port 2 and xpage-register. so whenever xram is used and the xram address differs from the byte written to port 2 latch it is absolutely nessesary to rewrite xpage with page address. example : i/o-data at port 2 shall be 0aah. a byte shall be fetched from xram at address 0f830 h mov r0, #30h mov p2, #0aah ; p2 shows 0aa h mov xpage, #0f8h ; p2 still shows 0aa h but xram is addressed movx a, @r0 ; the contents of xram at 0f830 h is moved to accu
semiconductor group 3 - 14 memory organization the register xpage provides the upper address byte for accesses to xram with movx @ri instructions. if the address formed from xpage and ri is less than the xram address range, then an external access is performed. for the sab 80c517a the contents of xpage must be greater or equal than f8 h in order to use the xram. of course, the xram must be enabled if it shall be used with movx @ri instructions. thus, the register xpage is used for addressing of the xram; additionally its contents are used for generating the internal xram select. if the contents of xpage is less than the xram address range then an external bus access is performed where the upper address byte is provided by p2 and not by xpage! therefore, the software has to distinguish two cases, if the movx @ri instructions with paging shall be used: a) access to xram: the upper address byte must be written to xpage or p2; both writes selects the xram address range. b) access to external memory: the upper address byte must be written to p2; xpage will be loaded with the same address in order to deselect the xram. the behaviour of port0, port2 and the rd /wr signals depends on the state of pin ea and on the control bits xmap0 and xmap1 in register syscon.
semiconductor group 3 - 15 memory organization 3.4.2 control of xram in the sab 80c517a there are two control bits in register syscon which control the use and the bus operation during accesses to the additional on-chip ram in xdata range ( xram). special function register syscon reset value of syscon is xxxx xx01b. the control bit xmap0 is a global enable/disable bit for the additional on-chip ram (xram). if this bit is set, the xram is disabled, all movx accesses use external memory via the external bus. in this case the sab80c517a can't use the additional on-chip ram and is compatible with the types without xram. bit function xmap0 global enable/disable bit for xram memory. xmap0 = 0: the access to xram (= on-chip xdata memory) is enabled. xmap0 = 1: the access to xram is disabled. all movx accesses are performed by the external bus. xmap1 control bit for rd /wr signals during accesses to xram; this bit has no effect if xram is disabled (xmap0 = 1) or if addresses outside the xram address range are used for movx accesses. xmap1 = 0: the signals rd and wr are not activated during accesses to xram. xmap1 = 1: the signals rd and wr are activated during accesses to xram. ^ = 76543210 msb lsb bit no. syscon addr. 0b1 h CCCCCC xmap1 xmap0
semiconductor group 3 - 16 memory organization a hardware protection is done by an unsymetric latch at xmap0-bit. a unintentional disabling of xram could be dangerous since indeterminate values could be read from external bus. to avoid this the xmap-bit is forced to '1' only by reset. additional during reset an internal capacitor is loaded. so the reset state is a disabled xram. because of the load time of the capacitor xmap0-bit once written to '0' (that is, discharging capacitor) cannot be set to '1' again by software. on the other hand any distortion (software hang up, noise,...) is not able to load this capacitor, too. that is, the stable status is xram enabled. the only way to disable xram after it was enabled is a reset. the clear instruction for the xmap0-bit should be integrated in the program initialization routine before xram is used. in extremely noisy systems the user may have redundant clear instructions. the control bit xmap1 is relevant only if the xram is accessed. in this case the external rd and wr signals at p3.6 and p3.7 are not activated during the access, if xmap1 is cleared. for debug purposes it might be useful to have these signals available. this is performed if xmap1 is set. 3.4.3 behaviour of port0 and port2 the behaviour of port 0 and p2 during a movx access depends on the control bits in register syscon and on the state of pin ea . the table 3-3 lists the various operating conditions. it shows the following characteristics: a) use of p0 and p2 pins during the movx access. bus: the pins work as external address/data bus. if (internal) xram is accessed, the data read from the xram can not be seen on the bus. i/0: the pins work as input/output lines under control of their latch. b) activation of the rd and wr pin during the access. c) use of internal or external xdata memory. the shaded areas describe the standard operation as each 80c51 device without on-chip xram behaves.
semiconductor group 3 - 17 memory organization table 3-3: behaviour of p0/p2 and rd /wr during movx accesses ea = 0 ea = 1 xmap1, xmap0 xmap1, xmap0 00 10 x1 00 10 x1 movx @dptr dptr < xram address range a)p0/p2 ? bus b)rd /wr active c)ext.memory is used a)p0/p2 ? bus b)rd /wr active c)ext.memory is used a)p0/p2 ? bus b)rd /wr active c)ext.memory is used a)p0/p2 ? bus b)rd /wr active c)ext.memory is used a)p0/p2 ? bus b)rd /wr active c)ext.memory is used a)p0/p2 ? bus b)rd /wr active c)ext.memory is used dptr 3 xram address range a)p0/p2 ? bus (wr -data only) b)rd /wr inactive c)xram is used a)p0/p2 ? bus (wr -data only) b)rd /wr active c)xram is used a)p0/p2 ? bus b)rd /wr active c) ext.memory is used a)p0/p2 ? i /o b)rd /wr inactive c)xram is used a)p0/p2 ? bus (wr -data only) b)rd /wr active c)xram is used a)p0/p2 ? bus b)rd /wr active c) ext.memory is used movx @ ri xpage < xram addr.page range a)p0 ? bus p2 ? i /o b)rd /wr active c)ext.memory is used a)p0 ? bus p2 ? i /o b)rd /wr active c)ext.memory is used a)p0 ? bus p2 ? i /o b)rd /wr active c)ext.memory is used a)p0 ? bus p2 ? i /o b)rd /wr active c)ext.memory is used a)p0 ? bus p2 ? i /o b)rd /wr active c)ext.memory is used a)p0 ? bus p2 ? i /o b)rd /wr active c)ext.memory is used xpage 3 xram addr.page range a)p0 ? bus (wr -data only) p2 ? i /o b)rd /wr inactive c)xram is used a)p0 ? bus (wr -data only) p2 ? i /o b)rd /wr active c)xram is used a)p0 ? bus p2 ? i /o b)rd /wr active c)ext.memory is used a)p0/p2 ? i /o b)rd /wr inactive c)xram is used a)p0 ? bus (wr -data only) p2 ? i /o b)rd /wr active c)xram is used a)p0 ? bus p2 ? i /o b)rd /wr active c)ext.memory is used modes compatible to 8051-family
semiconductor group 4 - 1 4 system reset 4.1 additional hardware power down mode in the sab 80c517a the sab 80c517a has an additional power down mode which can be initiated by an external signal at a dedicated pin. this pin is labeled hwpd and is a floating input line (active low). this pin substitutes one of the vss pins of the base types sab 80c517 (plcc84: pin60; p-mqfp-100-2: pin36). because this new power down mode is activated by an external hardware signal this mode is referred to as hardware power down mode in opposite to the program controlled software power down mode. for a correct function of the hardware power down mode the oscillator watchdog unit including its internal rc oscillator is needed. therefore this unit must be enabled by pin owe (owe = high), if the hardware power down mode shall be used. however, the control pin pe /swd has no control function for the hardware power down mode; it enables and disables only the use of all software controlled power saving modes (slow down mode, idle mode, software power down mode). the function of the new hardware power down mode is as follows: the pin hwpd controls this mode. if it is on logic high level (inactive) the part is running in the normal operating modes. if pin hwpd gets active (low level) the part enters the hardware power down mode; as mentioned above this is independent of the state of pin pe /swd. hwpd is sampled once per machine cycle. if it is found active, the device starts a complete internal reset sequence. this takes two machine cycles; all pins have their default reset states during this time. this reset has exactly the same effects as a hardware reset; i.e.especially the watchdog timer is stopped and its status flag wdts is cleared. in this phase the power consumption is not yet reduced. after completion of the internal reset both oscillators of the chip are disabled, the on-chip oscillator as well as the oscillator watchdog's rc oscillator. at the same time the port pins and several control lines enter a floating state as shown in table 4-1 . in this state the power consumption is reduced to the power down current ipd. also the supply voltage can be reduced. table 4-1 also lists the voltages which may be applied at the pins during hardware power down mode without affecting the low power consumption. system reset
semiconductor group 4 - 2 table 4-1, status of all pins during hardware power down mode pins status voltage range at pin during hw-power down p0, p1, p2, p3, p4, p5, p6, p7, p8 floating outputs / disabled input function v ss v i n v cc ea active input v i n = v cc or v i n = v ss pe /swd active input, pull-up resistor disabled during hw power down v i n = v cc or v i n = v ss xtal1 active output pin may not be driven xtal2 disabled input function v ss v i n v cc psen , ale floating outputs / disabled input function (for test modes only) v ss v i n v cc varef, vagnd active supply pins v agnd v i n v cc owe active input; must be at high level for start-up after hw pd; pull up resistor disabled during hw-power down v i n = v cc or ( v i n = v ss ) reset active input; must be on high level if hw pd is used v i n = v cc r0 floating output v ss v i n v cc system reset
semiconductor group 4 - 3 the power down state is maintained while pin hwpd is held active. if hwpd goes to high level (inactive state) an automatic start up procedure is performed: C first the pins leave their floating condition and enter their default reset state as they had immediately before going to float state. C both oscillators are enabled (only if owe = high). while the on-chip oscillator (with pins xtal1 and xtal2) usually needs a longer time for start-up, if not externally driven (with crystal approx. 1 ms), the oscillator watchdog's rc oscillator has a very short start-up time (typ. less than 2 microseconds) . C because the oscillator watchdog is active it detects a failure condition if the on-chip oscillator hasn't yet started. hence, the watchdog keeps the part in reset and supplies the internal clock from the rc oscillator. C finally, when the on-chip oscillator has started, the oscillator watchdog releases the part from reset after it performed a final internal reset sequence and switches the clock supply to the on-chip oscillator. this is exactly the same procedure as when the oscillator watchdog detects first a failure and then a recovering of the oscillator during normal operation. therefore, also the oscillator watchdog status flag is set after restart from hardware power down mode. when automatic start of the watchdog was enabled (pe /swd connected to v cc ), the watchdog timer will start, too (with its default reload value for time-out period). the swd-function of the pe /swd pin is sampled only by a hardware reset. therefore at least one power on reset has to be performed. system reset
semiconductor group 4 - 4 4.2 hardware power down reset timing following figures are showing the timing diagrams for entering ( figure 4-1 ) and leaving ( figure 4-2 ) the hardware power down mode. if there is only a short signal at pin hwpd (i.e. hwpd is sampled active only once), then a complete internal reset is executed. afterwards the normal program execution starts again ( figure 4-3 ). note: delay time caused by internal logic is not included. the reset pin overrides the hardware power down function, i.e. if reset gets active during hardware power down it is terminated and the device performs the normal reset function. thus, pin reset has to be inactive during hardware power down mode. system reset
semiconductor group 4 - 5 figure 4-1 timing diagram of entering hardware power down mode system reset
semiconductor group 4 - 6 figure 4-2 timing diagram of leaving hardware power down mode system reset
semiconductor group 4 - 7 figure 4-3 timing diagram of hardware power down mode, hwpd -pin is active for only one cycle system reset
semiconductor group 4 - 8 4.3 fast internal reset after power-on the sab 80c517a can use the oscillator watchdog unit for a fast internal reset procedure after power-on. figure 4-4 shows the power-on sequence under control of the oscillator watchdog. normally the devices of the 8051 family (like the sab 80c517) enter their default reset state not before the on-chip oscillator starts. the reason is that the external reset signal must be internally synchronized and processed in order to bring the device into the correct reset state. especially if a crystal is used the start up time of the oscillator is relatively long (typ. 1ms). during this time period the pins have an undefined state which could have severe effects especially to actuators connected to port pins. in the sab 80c517a the oscillator watchdog unit can avoid this situation. for doing this, the oscillator watchdog must be enabled. in this case, after power-on the oscillator watchdog's rc oscillator starts working within a very short start-up time (typ. less than 2 microseconds). in the following the watchdog circuitry detects a failure condition for the on-chip oscillator because this has not yet started (a failure is always recognized if the watchdog's rc oscillator runs faster than the on-chip oscillator). as long as this condition is detected the watchdog uses the rc oscillator output as clock source for the chip rather than the on-chip oscillator's output. this allows correct resetting of the part and brings also all ports to the defined state ( see figure 4-4, i ). the time period from power-on till reaching the reset state at the ports adds from the following terms: C rc oscillator start-up < 2 m s C synchronization of the rc oscillators divider-by-5 < 6 t C synchronization of the state and cycle counters < 6 t C reset procedure till correct port states are reached < 12t delay between power-on and correct reset state: typ.: 18 m s max.: 34 m s system reset
semiconductor group 4 - 9 after the on-chip oscillator finally has started, the oscillator watchdog detects the correct function; then the watchdog still holds the reset active for a time period of 768 cycles of the rc oscillator in order to allow the oscillation of the on-chip oscillator to stabilize ( figure 4-4, ii ). subsequently the clock is supplied by the on-chip oscillator and the oscillator watchdog's reset request is released ( figure 4-4, iii ). however, an externally applied reset still remains ( figure 4-4, iv ) active and the device does not start program execution ( figure 4-4, v ) before the external reset is also released. although the oscillator watchdog provides a fast internal reset it is additionally necessary to apply the external reset signal when powering up. the reasons are as follows: C termination of hardware power down mode (a hwpd signal is overridden by reset) C termination of software power down mode C reset of the status flag owds that is set by the oscillator watchdog during the power up sequence. the external reset signal must be hold active at least until the on-chip oscillator has started and the internal watchdog reset phase is completed. an external reset time of more than 5 ms should be sufficient in typical applications. if only a capacitor at pin reset is used a value of 100 nf provides the desired reset time. system reset
semiconductor group 4 - 10 figure 4-4 power-on of the sab 80c517a system reset
semiconductor group 5 - 1 on-chip peripheral components 5 on-chip peripheral components 5.1 digital i/o port circuitry to realize the hardware power down mode with floating port pins in the sab 80c517a/83c517a 5 the standard port structure used in the 8051 family is modified ( figure 5-1 ). the fets p4, p5 and n2 are added. during hardware power down this fets disconnect the port pins from internal logic. figure 5-1 port structure
semiconductor group 5 - 2 on-chip peripheral components p1 and p3 are not active during hardware power down. p1 is activated only for two oscillator periods if a 0-to-1 transition is programmed to the port pin (not possible during hwpd). p3 is turned off during reset state (also hwpd). for detailled description of the port structure please refer to the sab 80c517/80c537 user's manual.
semiconductor group 5 - 3 on-chip peripheral components 5.2 10-bit a/d-converter in the sab 80c517a is a new high performance / high speed 12-channel 10-bit a/d-converter is implemented. its successive approximation techniqe provides 7 m s conversion time ( f osc =16 mhz). the conversion principle is upward compatible to the one used in the sab 80c517. the major components are shown in figure 5-1 . the comparator is a fully differential comparator for a high power supply rejection ratio and very low offset voltages. the capacitor network is binary weighted providing 10-bit resolution. the table 5-1 below shows the sample time t s and the conversion time t c (including t s ), which depend on f osc and the selected prescaler (see also bit adcl in sfr adcon 1). table 5-1, adc-convertion time f osc [mhz] prescaler f adc [mhz] t s [ m s] t c [ m s] (incl. t s ) 12 8 1.5 1.33 8 16 0.75 2.8 16 16 8 2.0 2.0 7.0 16 1.0 4.0 14.0 18 8CCC 16 1.125 3.555 12.4
semiconductor group 5 - 4 on-chip peripheral components figure 5-1 10-bit a/d-converter
semiconductor group 5 - 5 on-chip peripheral components special function registers adcon0, adcon1 the reset value of adcon0 and adcon1 is 00 h bit function adex internal / external start of conversion. when set, the external start of conversion by p6.0 / adst is enabled. bsy busy flag. this flag indicates whether a conversion is in progress (bsy = 1). the flag is cleared by hardware when the conversion is finished. adm a/d conversion mode. when set, a continous conversion is selected. if cleared, the converter stops after one conversion. mx3 - mx0 select 12 input channels of the adc. bits mx0 to mx2 con be written or read either in adcon0 or in adcon1. adcl adc clock. when set f adc = f osc / 16. has to be set when f osc > 16 mhz 76543210 msb lsb bit no. 76543210 msb lsb bit no. adcon0 adcon1 addr. 0d8 h addr. 0dc h these bits are not used in controlling a/d converter functions in the 80c517a bd clk adex bsy adm mx2 mx1 mx0 mx2 mx1 mx0 adcl mx3
semiconductor group 5 - 6 on-chip peripheral components special function register addath, addatl the reset value of addath and addatl is 00 h . the registers addath (0d9h) and addatl (0dah) contain the 10-bit conversion result. the data is read as two 8-bit bytes. data is presented in left justified format (i.e. the msb is the most left-hand bit in a 16-bit word). to get a 10-bit conversion result two read operations are required. otherwise addath contains the 8-bit conversion result. 76543210 msb lsb bit no. 76543210 msb lsb bit no. addath addatl addr. 0da h these bits are not used for conversion result msb addr. 0d9 h lsb
semiconductor group 5 - 7 on-chip peripheral components a/d converter timing after a conversion has been started (by a write to addatl, external start by p6.0/adst or in continous mode) the analog input voltage is sampled for 4 clock cycles. the analog source must be capable of charging the capacitor network of appr. 50 pf to full accuracy in this time. during this period the converter is susceptable to spikes and noise at the analog input, which may cause wrong codes at the digital outputs. therefore rc-filtering at the analog inputs is recommended (see figure 5-2 below). conversion of the sampled analog voltage takes place between the 4th an 14th clock cycle. figure 5-2 recommended rc-filtering at the analog inputs
semiconductor group 5 - 8 on-chip peripheral components 5.3 additional compare mode for the concurrent compare unit the sab 80c517a has an additional compare mode (compare mode 2) in the compare/capture unit which can be used for the concurrent compare output at p5. in this compare mode 2 the p5 pins are no longer general purpose i/o pins or under control of compare/capture register cc4, but under control of the new compare registers comset and comclr. these both 16-bit registers are always associated with timer 2 (same as crc, cc1 to cc4). each of these registers consists of two 8-bit portions, i.e comset consists of comsetl (address 0a1 h ) and comseth (address 0a2 h ), comclr consists of comclrl (address 0a3 h ) and comclrh (address 0a4 h ) in compare mode 2 the concurrent compare output pins on port 5 are used as follows ( see figure 5-3 ): C when a compare match occurs with register comset, a high level appears at the pins of port 5 whose corresponding bits in the mask register setmsk (address 0a5 h ) are set. C when a compare match occurs in register comclr, a low level appears at the pins of port 5 whose corresponding bits in the mask register clrmsk (address 0a6 h ) are set. C additionally the port 5 pins used for compare mode 2 may also be directly written to by write instructions to sfr p5. of course, the pins can also be read under program control. if compare mode 2 shall be selected register cc4 must operate in compare mode 1 (with the corresponding output pin p1.4); thus, compare mode 2 is selected by enabling compare function for register cc4 (cocah4=1; cocal4=0 sfr cc4en) and by programming bits cocoen0 and cocoen1 in sfr cc4en. like in concurrent compare mode associated with cc4, the number of port pins at p5 which serve the compare output function can be selected by bits cocon0- cocon2 (in sfr cc4en). if a set and reset request occurs at the same time (identical values in comset and comclr), the set operation takes precedence. it is also possible to use only the interrupts which are generated by matches in comset and comclr without affecting p5 ("software compare"). for this "interrupt-only" mode it is not necessary that the compare function at cc4 is selected.
semiconductor group 5 - 9 on-chip peripheral components figure 5-3 compare mode 2 (port 5 only)
semiconductor group 5 - 10 on-chip peripheral components special function register cc4en the reset value of sfr cc4en is 00 h . bit function cocon2 cocon1 cocon0 selects number of compare outputs at p5 (for compare modes 1 and 2); see table 2-2 cocah4 cocal4 00 01 10 11 compare/capture mode for register cc4 and compare modes 1 and 2 at p5 compare/capture at cc4 disabled capture on falling/rising edge at pin p1.4/int2 /cc4 compare enabled at cc4 capture on write operation into register ccl4 cocoen1 cocoen0 selection of compare modes 1 and 2 at p5; valid only in combination with certain configurations in cocah4, cocal4; see table 2-3 setting of bit cocoen0 automatically sets com0 com0 compare mode for register cc4 com0 = 0 selects compare mode 0 com0 = 1 selects compare mode 1 setting of bit cocoen0 automatically sets com0 cocon2 cocon1 cocon0 function 0 0 0 0 1 1 1 1 0 0 1 1 0 0 1 1 0 1 0 1 0 1 0 1 one additional output of cc4 at p5.0 additional outputs of cc4 at p5.0 to p5.1 additional outputs of cc4 at p5.0 to p5.2 additional outputs of cc4 at p5.0 to p5.3 additional outputs of cc4 at p5.0 to p5.4 additional outputs of cc4 at p5.0 to p5.5 additional outputs of cc4 at p5.0 to p5.6 additional outputs of cc4 at p5.0 to p5.7 76543210 msb lsb bit no. cc4en 0c9 h cocoen1 cocon2 cocon1 cocon0 cocoen0 cocah4 cocal4 com0
semiconductor group 5 - 11 on-chip peripheral components table 5-3 , configurations for concurrent compare mode and compare mode 2 at p5 the other combinations are reserved and must not be used. cocah4 cocal4 cocoen1 cocoen0 function of cc4 function of compare modes at p5 00 0 0 00 1 0 compare / capture disabled compare / capture disabled disabled compare mode 2 selected, but only interrupt generation (icr, ics); no output signals 0 0 1 1 compare / capture disabled compare mode 2 selected at p5 01 0 0 01 1 0 capture on falling/ rising edge at pin p1.4/int2 /cc4 C disabled compare modes 2 selected, but olny interrupt generation (icr, ics); no output signals at p5 10 0 0 10 0 1 10 1 0 10 1 1 compare enable at cc4; mode 0 / 1 is selected by com0 compare mode 1 enabled at cc4; com0 is automatically set compare enable at cc4; mode 0 / 1 is selected by com0 compare mode 1 en- abled at cc4; com0 is automatically set disabled concurrent compare (mode 1) selected at p5 compare mode 2 selected, but only interrupt generation (icr, ics); no output signals at p5 compare mode 2 selected at p5 11 0 0 11 1 0 capture on write operation into register ccl4 capture on write operation into register ccl4 disabled compare mode 2 selected, but only interrupt generation (icr, ics); no output signals at p5
semiconductor group 5 - 12 on-chip peripheral components the following table 5-4 lists the sfr's with their addresses and default values after reset which are used in compare mode 2: table 5-4, compare mode 2, used sfr's and their default reset value the compare registers comset and comclr have their dedicated interrupt vectors. the corresponding request flags are ics for register comset and icr for register comclr. the flags are set by a match in registers comset and comclr, when enabled. as long as the match condition is valid the request flags can't be reset (neither by hardware nor software). the request flags are located in sfr ctcon. special function register ctcon the default value of ctcon after reset is 0x00 0000b sfr address default value after reset comsetl 0a1 h 00 h comseth 0a2 h 00 h comclrl 0a3 h 00 h comclrh 0a4 h 00 h setmsk 0a5 h 00 h clrmsk 0a6 h 00 h ctcon 0e1 h 0x00 0000 b cc4en 0c9 h 00 h bit function clk0 clk1 clk2 ctf same function as sab 80c517 ics interrupt request flag for compare register comset. ics is set when a compare match occured. cleared when interrupt is processed. icr interrupt request flag for compare register comres. icr is set when a compare match occured. cleared when interrupt is processed. t2ps1 prescaler select bit for timer 2. see table 5-5 76543210 msb lsb bit no. ctcon 0ba h t2ps1 C icr isc ctf clk2 clk1 clk0
semiconductor group 5 - 13 on-chip peripheral components extended prescaler for timer 2 the prescaler for timer 2 has an extended range. this prescaler divides the input clock for timer 2 when it is operated in timer mode. in addition to the ? 2 option there are now scale ratings of ? 4 and ? 8 available. the rate is selected by the control bits t2ps (t2con.7) and t2ps1 (ctcon.7). table 5-5 lists all available options. this prescaler must not be used when timer 2 is operated in counter mode. table 5-5, timer 2 prescaler t2ps1 (ctcon.7) t2ps (t2con.7) prescaler ratio 00 ? 1 01 ? 2 10 ? 4 11 ? 8
semiconductor group 5 - 14 on-chip peripheral components 5.4 new baud rate generators for serial channel 0 and serial channel 1 5.4.1 serial channel 0 baud rate generator the serial channel 0 has a new baud rate generator which provides greater flexibility and better resolution. it substitutes the 80c517's baud rate generator at serial channel 0 which provides only 4.8 kbaud or 9.6 kbaud at 12 mhz crystal frequency. since the new generator offers greater flexibility it is often possible to use it instead of timer1 which is then free for other tasks. figure 5-4 shows a block diagram of the new baud rate generator for serial channel 0. it consists of a free running 10-bit timer with f osc /2 input frequency. on overflow of this timer there is an automatic reload from the registers s0rell (address aa h ) and s0relh (address ba h ). the lower 8 bits of the timer are reloaded from s0rell, while the upper two bits are reloaded from bit 0 and 1 of register s0relh. the baud rate timer is reloaded by writing to s0rell. figure 5-4 baud rate generator for serial interface 0 the default value after reset of s0rell is 0d9 h , s0 relh contains xxxx xx11b.
semiconductor group 5 - 15 on-chip peripheral components special function register s0relh, s0rell reset value of s0rell is 0d9 h , s0relh contains xxxx xxx11b. bit function s0relh.0-1 reload value. upper two bits of the timer reload value. s0rell.0-7 reload value. lower 8 bit of timer reload value. 76543210 msb lsb bit no. 76543210 msb lsb bit no. s0relh s0rell addr. 0ba h addr. 0aa h msb lsb shaded areas are not used for programming the baudrate timer
semiconductor group 5 - 16 on-chip peripheral components figure 5-5 shows a block diagram of the options available for baud rate generation of serial channel 0. it is a fully compatible superset of the functionality of the sab 80c517. the new baud rate generator can be used in modes 1 and 3 of the serial channel 0. it is activated by setting bit bd (adcon0.7). this also starts the baud rate timer. when timer1 shall be used for baud rate generation, bit bd must be cleared. in any case, bit smod (pcon.7) selects an additional divider by two. the default values after reset in registers s0rell and s0relh provide a baud rate of 4.8 kbaud (with smod = 0) or 9.6 kbaud (with smod = 1) at 12 mhz oscillator frequency. this guarantees full compatibility to the sab 80c517. figure 5-5 block diagram of baud rate generation for serial interface 0 if the new baud rate generator is used the baud rate of serial channel 0 in mode 1 and 3 can be determined as follows: with s0rel = s0relh.1 C 0, s0rell.7 C 0 mode 1, 3 baud rate = 2 smod x oscillator frequency 64 x (2 10 C s0rel)
semiconductor group 5 - 17 on-chip peripheral components 5.4.2 serial channel 1 baud rate generator a new baud rate generator for serial channel 1 now offers a wider range of selectable baud rates. especially a baud rate of 1200 baud can be achieved now. the baud rate generator itself is identical with the one used for serial channel 0. it consists of a free running 10-bit timer with f osc /2 input frequency. on overflow of this timer there is an automatic reload from the registers s1rell (address 9d h ) and s1relh (address bb h ). the lower 8 bits of the timer are reloaded from s1rell, while the upper two bits are reloaded from bit 0 and 1 of register s1relh. the baud rate timer is reloaded by writing to s1rell. the baud rate in mode a and b can be determined by the following formula: with s1rel = s1relh.1 C 0, s1rell.7 C 0 figure 5-6 shows a block diagram of the baud rate generator for serial interface 1. figure 5-6 baud rate generator for serial interface 1 mode a, b baud rate = oscillator frequency 32 x (2 10 C s1rel)
semiconductor group 5 - 18 on-chip peripheral components special function register srelh, srell reset value of s1rell is 00 h , s1relh contains xxxx xxx11b. bit function s1relh.0-1 reload value. upper two bits of the timer reload value. s1rell.0-7 reload value. lower 8 bit of timer reload value. 76543210 msb lsb bit no. 76543210 msb lsb bit no. s1relh s1rell addr. 0bb h addr. 09d h msb lsb shaded areas are not used for programming the baudrate timer
semiconductor group 5 - 19 on-chip peripheral components 5.5 modified oscillator watchdog unit the sab 80c517a has a new oscillator watchdog unit that has an improved functionality with respect to the sab 80c517's oscillator watchdog. use of the oscillator watchdog unit the unit serves three functions: C monitoring of the on-chip oscillator's function. the watchdog supervises the on-chip oscillator's frequency; if it is lower than the frequency of the auxiliary rc oscillator in the watchdog unit, the internal clock is supplied by the rc oscillator and the device is brought into reset; if the failure condition disappears (i.e. the on- chip oscillator has a higher frequency than the rc oscillator), the part executes a final reset phase of appr. 0.5 ms in order to allow the oscillatior to stabilize; then the oscillator watchdog reset is released and the part starts program execution again. C restart from the hardware power down mode. if the hardware power down mode is terminated the oscillator watchdog has to control the correct start-up of the on-chip oscillator and to restart the program. the oscillator watchdog function is only part of the complete hardware power down sequence; however, the watchdog works identically to the monitoring function. C fast internal reset after power-on. in this function the oscillator watchdog unit provides a clock supply for the reset before the on- chip oscillator has started. in this case the oscillator watchdog unit also works identically to the monitoring function. if the oscillator watchdog unit shall be used it must be enabled (this is done by applying high level to the control pin owe).
semiconductor group 5 - 20 on-chip peripheral components detailled description of the oscillator watchdog unit figure 5-7 shows the block diagram of the oscillator watchdog unit. it consists of an internal rc oscillator which provides the reference frequency for the comparison with the frequency of the on- chip oscillator. the rc oscillator can be enabled/disabled by the control pin owe . if it is disabled the complete unit has no function. figure 5-7 oscillator watchdog unit special function register ip0 (address 0a9h) reset value of ip0 is 00 h . bit function owds oscillator watchdog timer status flag. set by hardware when an oscillator watchdog reset occurred. can be cleared or set by software. 76543210 msb lsb bit no. ip0 0a9 h these bits are not used in controlling the fail safe mechanisms. owds wdts ip0.5 ip0.4 ip0.3 ip0.2 ip0.1 ip0.0
semiconductor group 5 - 21 on-chip peripheral components the frequency coming from the rc oscillator is divided by 5 and compared to the on-chip oscillator's frequency. if the frequency coming from the on-chip oscillator is found lower than the frequency derived from the rc oscillator the watchdog detects a failure condition (the oscillation at the on-chip oscillator could stop because of crystal damage etc.). in this case it switches the input of the internal clock system to the output of the rc oscillator. this means that the part is being clocked even if the on-chip oscillator has stopped or has not yet started. at the same time the watchdog activates the internal reset in order to bring the part in its defined reset state. the reset is performed because clock is available from the rc oscillator. this internal watchdog reset has the same effects as an externally applied reset signal with the following exception: the watchdog timer status flag wdts (ip0.6) is not reset (the watchdog timer however is stopped) and bit owds is set. this allows the software to examine error conditions detected by the watchdog timer even if meanwhile an oscillator failure occured. the oscillator watchdog is able to detect a recovery of the on-chip oscillator after a failure. if the frequency derived from the on-chip oscillator is again higher than the reference the watchdog starts a final reset sequence which takes typ. 1 ms. within that time the clock is still supplied by the rc oscillator and the part is held in reset. this allows a reliable stabilization of the on chip oscillator. after that, the watchdog toggles the clock supply back to the on-chip oscillator and releases the reset request. if no external reset is applied in this moment the part will start program execution. if an external reset is active, however, the device will keep the reset state until also the external reset request disappears. furthermore, the status flag owds (ip0.7) is set if the oscillator watchdog was active. the status flag can be evaluated by software to detect that a reset was caused by the oscillator watchdog. the flag owds can be set or cleared by software. an external reset request, however, also resets owds (and wdts).
semiconductor group 6 - 1 6 interrupt system 6.1 additional interrupt for compare registers cm0 to cm7 there is an additional interrupt which is vectored to on a compare match in one of the eight comparators of the compare registers cm0 to cm7, when compare mode 1 is selected for the corresponding channel (assigned to timer 2 by control bit cmsel.x). for that purpose the sab 80c517a provides eight interrupt request flags (in sfr ircon1, address 0d1h) which are ored to form the interrupt request for that vector, i.e. each of the eight comparators has its own request flag. thus the service routine may decide which compare match requested the interrupt. the corresponding request flag is set by every match in the compare channel when the compare mode 1 is selected for this channel (assigned to timer 2). if compare mode 0 is selected for a channel (assigned to the compare timer), the corresponding interrupt request flag will not be set on a compare match. this interrupt is enabled by setting the enable bit ecmp in sfr ien2. if this bit is set the program vectors to location 0a3 h if one of the eight request flags in ircon 1 is set. figure 6-1 shows a functional block diagram of the new structure concerning the interrupts. the further functions of this compare unit keep full compatibility to the sab 80c517. interrupt system
semiconductor group 6 - 2 figure 6-1 interrupts of compare registers cm0-cm7 assigned to timer ii interrupt system
semiconductor group 6 - 3 special function register ircon1 the reset value of ircon1 is 00 h . bit function icmpx compare x interrupt request flag. set by hardware when a compare match in compare mode 1 with compare register cmx occured (only, if compare function enabled for cmx). icmpx must be cleared by software (cmsel.x = 0 and cmen.x = 1). 76543210 msb lsb bit no. ircon1 0d1 h icmp0 icmp1 icmp2 icmp3 icmp4 icmp5 icmp6 icmp7 interrupt system
semiconductor group 6 - 4 6.2 interrupt structure this section summarizes the expanded interrupt structure of the sab 80c517a which has 3 new interrupt vectors in addition to the 14 vectors of the sab 80c517. thus, 17 vectors are available now. the new interrupt sources are: 1. request flags icmp0 to icmp7: these eight request flags are set by compare matches in the compare registers cm0-7, if the compare function is enabled and compare mode 1 is selected for the corresponding register scm0-7. interrupt vector: 0093h enable bit: ecmp (ien2.2) priority: same priority as ie1/iex3, programmed by ip1.2/ip0.2 2. request flag: ics this request flag is set by a compare match in compare register comset. interrupt vector: 00a3h enable bit: ecs (ien2.4) priority: same priority as ri0+ti0/iex5, programmed by ip1.4/ip0.4 3. request flag: icr this request flag is set by a compare match in compare register comclr interrupt vector: 00abh enable bit: ecr (ien2.5) priority: same priority as tf2+exf2/iex6, programmed by ip1.5/ip0.5 interrupt system
semiconductor group 6 - 5 3.1 priority level structure the following tables show the sfr ien2, the priority level grouping ( table 6-1 ) and the priority within level ( table 6-2 ). the principle of the priority level selection is identical to the sab 80c517, i.e. a pair or triple can be programmed to one of four priority levels. special function register ien2 the reset value of ien2 is xx00 00x0b. bit function es1 enable serial interrupt of interface 1. enables or disables the interrupt of serial interface 1. if es1 = 0, the interrupt is disabled. ecmp enables interrupt on compare match in compare registers cm0 - cm7. if ecmp = 0, the interrupt is disabled. ect enable compare timer interrupt. enables or disables the interrupt at compare timer overflow. if ect = 0, the interrupt is disabled. ecs enables interrupt on compare match in compare register comset. if ecs = 0, the interrupt is disabled. ecr enabled interrupt on compare match in compare register comclr. if ecr = 0, the interrupt is disabled. 76543210 msb lsb bit no. ien2 09a h es1 C ecmp ect ecs ecr C C interrupt system
semiconductor group 6 - 6 table 6-1, pairs and triplets of interrupt sources table 6-2, priority within level external interrupt 0 serial channel 1 interrupt a/d converter interrupt timer 0 interrupt C external interrupt 2 external interrupt 1 match in cm0 - cm7 external interrupt 3 timer 1 interrupt compare timer overflow external interrupt 4 serial channel 0 interrupt match in comset external interrupt 5 timer 2 interrupt match in comclr external interrupt 6 interrupt source priority high ? low ie0 ri1 + ti1 iadc tf0 C iex2 ie1 icmp0-7 iex3 tf1 ctf iex4 ri0 + ti0 ics iex5 tf2 + exf2 icr iex6 high low interrupt system
device specification 7-1 05.94 4 device specification high-performance sab 80c517a/83c517a-5 8-bit cmos single-chip microcontroller preliminary sab 83c517a-5 microcontroller with factory mask-programmable rom sab 80c517a microcontroller for external rom l sab 80c517a/83c517a-5, l eight data pointers for external memory up to 18 mhz operation addressing l 32 k 8 rom (sab 83c517a-5 only, l seventeen interrupt vectors, four priority rom-protection available) levels selectable l 256 8 on-chip ram l genuine 10-bit a/d converter with l 2 k 8 on-chip ram (xram) 12 multiplexed inputs l superset of sab 80c51 architecture: l two full duplex serial interfaces with C 1 m s instruction cycle time at 12 mhz programmable baudrate-generators C 666 ns instruction cycle time at 18 mhz l fully upward compatible with sab 80c515, C 256 directly addressable bits sab 80c517, sab 80c515a C boolean processor l extended power saving mode C 64 kbyte external data and l fast power-on reset program memory addressing l nine ports: 56 i/o lines, 12 input lines l four 16-bit timer/counters l three temperature ranges available: l powerful 16-bit compare/capture unit 0 to 70 o c (t1) (ccu) with up to 21 high-speed or pwm C 40 to 85 o c (t3) output channels and 5 capture inputs C 40 to 110 o c (t4) l versatile "fail-safe" provisions l plastic packages: p-lcc-84, l fast 32-bit division, 16-bit multiplication, p-mqfp-100-2 32-bit normalize and shift by peripheral mul/div unit (mdu) the sab 80c517a/83c517a-5 is a high-end member of the siemens sab 8051 family of microcontrollers. it is designed in siemens acmos technology and based on sab 8051 architecture. acmos is a technology which combines high-speed and density characteristics with low-power consumption or dissipation. while maintaining all the sab 80c517 features and operating characteristics the sab 80c517a is expanded in its "fail-safe" characteristics and timer capabilities.the sab 80c517a is identical with the sab 83c517a-5 except that it lacks the on-chip program memory. the sab 80c517a/83c517a-5 is supplied in a 84-pin plastic leaded chip carrier package (p-lcc-84) and in a 100-pin plastic quad flat package (p-mqfp-100-2).
device specification semiconductor group 7-2 ordering information type ordering code package description 8-bit cmos microcontroller sab 80c517a-n18 q67120-c583 p-lcc-84 for external memory,18 mhz sab 80c517a-m18 tbd p-mrfp-100 sab 83c517a-5n18 q67120-c582 p-lcc-84 with mask-programmable rom, 18 mhz sab 80c517a-N18-T3 q67120-c769 p-lcc-84 for external memory,18 mhz ext. temperature C 40 to 85 o c sab 83c517a-5N18-T3 q67120-c771 p-lcc-84 with mask-programmable rom, 18 mhz ext. temperature C 40 to 85 o c sab 83c517a-n18-t4 tbd p-lcc-84 for external memory, 18 mhz ext. temperature -40 to +110 o c sab 83c517a-5n18-t4 tbd p-lcc-84 with mask-programmable rom, 18 mhz ext. temperature -40 to +110 o c
device specification semiconductor group 7-3 logic symbol
device specification semiconductor group 7-4 the pin functions of the sab 80c517a are identical with those of the sab 80c517/80c537 with one exception: typ sab 80c517a sab 80c517/80c537 p-lcc-84, pin 60 hwpd n.c. p-mqfp-100-2,pin 36 pin configuration (p-lcc-84)
device specification semiconductor group 7-5 pin configuration (p-mqfp-100-2)
device specification semiconductor group 7-6 pin definitions and functions symbol pin number i/o *) function p-lcc-84 p-mqfp-100-2 p4.0 C p4.7 1C 3, 5 C 9 64 - 66, 68 - 72 i/o port 4 is a bidirectional i/o port with internal pull-up resistors. port 4 pins that have 1 s written to them are pulled high by the internal pull-up resistors, and in that state can be used as inputs. as inputs, port 4 pins being externally pulled low will source current ( i il, in the dc char- acteristics) because of the internal pull- up resistors. this port also serves alternate compare functions. the secondary functions are assigned to the pins of port 4 as follows: C cm0 (p4.0): compare channel 0 C cm1 (p4.1): compare channel 1 C cm2 (p4.2): compare channel 2 C cm3 (p4.3): compare channel 3 C cm4 (p4.4): compare channel 4 C cm5 (p4.5): compare channel 5 C cm6 (p4.6): compare channel 6 C cm7 (p4.7): compare channel 7 pe /swd 4 67 i power saving modes enable start watchdog timer a low level on this pin allows the soft- ware to enter the power down, idle and slow down mode. in case the low level is also seen during reset, the watchdog timer function is off on default. use of the software controlled power saving modes is blocked, when this pin is held on high level. a high level during reset performs an automatic start of the watchdog timer immediately after reset. when left unconnected this pin is pulled high by a weak internal pull-up resistor. * i = input o = output
device specification semiconductor group 7-7 pin definitions and functions (contd) symbol pin number i/o *) function p-lcc-84 p-mqfp-100-2 reset 10 73 i reset a low level on this pin for the duration of one machine cycle while the oscillator is running resets the sab 80c517a. a small internal pull-up resistor permits power-on reset using only a capacitor connected to v ss . v aref 11 78 reference voltage for the a/d con- verter. v agnd 12 79 reference ground for the a/d converter. p7.7 -p7.0 13 - 20 80 - 87 i port 7 is an 8-bit unidirectional input port. port pins can be used for digital input, if voltage levels meet the specified input high/low voltages, and for the lower 8- bit of the multiplexed analog inputs of the a/d converter, simultaneously. * i = input o = output
device specification semiconductor group 7-8 pin definitions and functions (contd) symbol pin number i/o *) function p-lcc-84 p-mqfp-100-2 p3.0 - p3.7 21 - 28 90 - 97 i/o port 3 is a bidirectional i/o port with internal pull- up resistors. port 3 pins that have 1 s written to them are pulled high by the internal pull-up resistors, and in that state can be used as inputs. as inputs, port 3 pins being externally pulled low will source current ( i il, in the dc characteristics) because of the internal pull-up resistors. port 3 also contains the interrupt, timer, serial port 0 and external memory strobe pins that are used by various options. the output latch corresponding to a secondary function must be programmed to a one (1) for that function to operate. the secondary functions are assigned to the pins of port 3, as follows: C r d0 (p3.0): receiver data input (asynchronous) or data input/output (synchronous) of serial interface Ct d0 (p3.1): transmitter data output (asynchronous) or clock output (synchronous) of serial interface 0 Cint0 (p3.2): interrupt 0 input/ timer 0 gate control Cint1 (p3.3): interrupt 1 input /timer 1 gate control C t0 (p3.4): counter 0 input C t1 (p3.5): counter 1 input Cwr (p3.6): the write control signal latches the data byte from port 0 into the external data memory C rd (p3.7): the read control signal enables the external data memory to port 0 * i = input o = output
device specification semiconductor group 7-9 p1.7 - p1.0 29 - 36 98 - 100, 1, 6 - 9 i/o port 1 is a bidirectional i/o port with internal pull-up resistors. port 1 pins that have 1 s written to them are pulled high by the internal pull-up resistors, and in that state can be used as inputs. as inputs, port 1 pins being externally pulled low will source current ( i il , in the dc characteristics) because of the internal pull-up resistors. it is used for the low order address byte during program verification. it also contains the interrupt, timer, clock, capture and compare pins that are used by various options. the output latch must be programmed to a one (1) for that function to operate (except when used for the compare functions). the secondary functions are assigned to the port 1 pins as follows: Cint3 /cc0 (p1.0): interrupt 3 input / compare 0 output /capture 0 input C int4/cc1 (p1.1): interrupt 4 input / compare 1 output /capture 1 input C int5/cc2 (p1.2): interrupt 5 input / compare 2 output /capture 2 input C int6/cc3 (p1.3): interrupt 6 input / compare 3 output /capture 3 input C int2 /cc4 (p1.4): interrupt 2 input / compare 4 output /capture 4 input C t2ex (p1.5): timer 2 external reload trigger input C clkout (p1.6): system clock output C t2 (p1.7): counter 2 input * i = input o = output pin definitions and functions (contd) symbol pin number i/o *) function p-lcc-84 p-mqfp-100-2
device specification semiconductor group 7-10 xtal2 39 12 C xtal2 input to the inverting oscillator amplifier and input to the internal clock generator circuits. xtal1 40 13 C xtal1 output of the inverting oscillator amplifier. to drive the device from an external clock source, xtal2 should be driven, while xtal1 is left unconnected. there are no requirements on the duty cycle of the external clock signal, since the input to the internal clocking circuitry is devided down by a divide-by-two flip-flop. minimum and maximum high and low times as well as rise/fall times specified in the ac characteristics must be observed. p2.0 - p2.7 41 - 48 14 - 21 i/o port 2 is a bidirectional i/o port with internal pull- up resistors. port 2 pins that have 1 s written to them are pulled high by the internal pull-up resistors, and in that state can be used as in-puts. as inputs, port 2 pins being externally pulled low will source current ( i il , in the dc characteristics) because of the internal pull-up resistors. port 2 emits the high-order address byte during fetches from external program memory and during accesses to external data memory that use 16-bit addresses (movx @dptr). in this application it uses strong internal pull-up resistors when issuing1 s. during accesses to external data memory that use 8-bit addresses (movx @ri), port 2 issues the contents of the p2 special function register. * i = input o = output pin definitions and functions (contd) symbol pin number i/o *) function p-lcc-84 p-mqfp-100-2
device specification semiconductor group 7-11 psen 49 22 o the program store enable output is a control signal that enables the external program memory to the bus during external fetch operations. it is activated every six oscillator periodes except during external data memory accesses. remains high during internal program execution. ale 50 23 o the address latch enable output is used for latching the address into external memory during normal operation. it is activated every six oscillator periodes except during an external data memory access ea 51 24 i external access enable when held at high level, instructions are fetched from the internal rom (sab 83c517a-5 only) when the pc is less than 8000h. when held at low level, the sab 80c517a fetches all instructions from ex- ternal program memory. for the sab 80c517a this pin must be tied low p0.0 - p0.7 52 - 59 26 - 27, 30 - 35 i/o port 0 is an 8-bit open-drain bidirectional i/o port. port 0 pins that have 1 s written to them float, and in that state can be used as high- impe-dance inputs. port 0 is also the multiplexed low-order address and data bus during accesses to external program or data memory. in this application it uses strong internal pull-up resistors when issuing 1 s. port 0 also out-puts the code bytes during program verification in the sab 83c517a if rom-protection was not enabled. external pull-up resistors are required during program verification. * i = input o = output pin definitions and functions (contd) symbol pin number i/o *) function p-lcc-84 p-mqfp-100-2
device specification semiconductor group 7-12 hwpd 60 36 i hardware power down a low level on this pin for the duration of one machine cycle while the oscillator is running resets the sab 80c517a. a low level for a longer period will force the part to power down mode with the pins floating. (see table 7) p5.7 - p5.0 61 - 68 37 - 44 i/o i port 5 is a bidirectional i/o port with internal pull- up resistors. port 5 pins that have 1 s written to them are pulled high by the internal pull-up resistors, and in that state can be used as inputs. as inputs, port 5 pins being externally pulled low will source current ( i il , in the dc characteristics) because of the internal pull-up resistors. this port also serves the alternate function "concurrent compare" and "set/reset compare". the secondary functions are assigned to the port 5 pins as follows: C ccm0 to ccm7 (p5.0 to p5.7): concurrent compare or set/reset owe 69 45 i/o oscillator watchdog enable a high level on this pin enables the oscillator watchdog. when left unconnected this pin is pulled high by a weak internal pull-up resistor. when held at low level the oscillator watchdog function is off. * i = input o = output pin definitions and functions (contd) symbol pin number i/o *) function p-lcc-84 p-mqfp-100-2
device specification semiconductor group 7-13 p6.0 - p6.7 70 - 77 46 - 50, 54 - 56 i/o port 6 is a bidirectional i/o port with internal pull- up resistors. port 6 pins that have 1 s written to them are pulled high by the internal pull-up resistors, and in that state can be used as inputs. as inputs, port 6 pins being externally pulled low will source current ( i il , in the dc characteristics) because of the internal pull-up resistors. port 6 also contains the external a/d converter control pin and the transmit and receive pins for serial channel 1. the output latch corresponding to a secondary function must be programmed to a one (1) for that function to operate. the secondary functions are assigned to the pins of port 6, as follows: C adst (p6.0): external a/d converter start pin C r d1 (p6.1): receiver data input of serial interface 1 Ct d1 (p6.2): transmitter data output of serial interface 1 p8.0 - p8.3 78 - 81 57 - 60 i port 8 is a 4-bit unidirectional input port. port pins can be used for digital input, if voltage levels meet the specified input high/low voltages, and for the higher 4-bit of the multiplexed analog inputs of the a/d converter, simultaneously * i = input o = output pin definitions and functions (contd) symbol pin number i/o *) function p-lcc-84 p-mqfp-100-2
device specification semiconductor group 7-14 pin definitions and functions (contd) symbol pin number i/o *) function p-lcc-84 p-mqfp-100-2 ro 82 61 o reset output this pin outputs the internally synchronized reset request signal. this signal may be generated by an external hardware reset, a watchdog timer reset or an oscillator watch-dog reset. the reset output is active low. v s s 37, 83 10, 62 C circuit ground potential v cc 38, 84 11, 63 C supply terminal for all operating modes n.c. C 2 - 5, 25, 28 - 29, 51 - 53, 74 - 77, 88 - 89 C not connected * i = input o = output
device specification semiconductor group 7-15 figure 1 block diagram
device specification semiconductor group 7-16 functional description the sab 80c517a is based on 8051 architecture. it is a fully compatible member of the siemens sab 8051/80c51 microcontroller family being an significantly enhanced sab 80c517. the sab 80c517a is therefore compatible with code written for the sab 80c517. having an 8-bit cpu with extensive facilities for bit-handling and binary bcd arithmetics the sab 80c517a is optimized for control applications. with a 18 mhz crystal, 58 % of the instructions are executed in 666.67 ns. being designed to close the performance gap to the 16-bit microcontroller world, the sab 80c517as cpu is supported by a powerful 32-/16-bit arithmetic unit and a more flexible addressing of external memory by eight 16-bit datapointers. memory organisation according to the sab 8051 architecture, the sab 80c517a has separate address spaces for program and data memory. figure 2 illustrates the mapping of address spaces. figure 2 memory map
device specification semiconductor group 7-17 program memory ('code space') the sab 83c517a-5 has 32 kbyte of on-chip rom, while the sab 80c517a has no internal rom. the program memory can externally be expanded up to 64 kbyte. pin ea controls whether program fetches below address 8000h are done from internal or external memory. as a new feature the sab 83c517a-5 offers the possibility of protecting the internal rom against unauthorized access. this protection is implemented in the rom-mask.therefore, the decision rom-protection 'yes' or 'no' has to be made when delivering the rom-code. once enabled, there is no way of disabling the rom-protection. effect: the access to internal rom done by an externally fetched movc instruction is disabled. nevertheless, an access from internal rom to external rom is possible. to verify the read protected rom-code a special rom-verify-mode is implemented. this mode also can be used to verify unprotected internal rom. rom -protection rom-verification mode (see 'ac characteristics') restrictions no rom-verification mode 1 (standard 8051 verification mode) rom-verification mode 2 C yes rom-verification mode 2 C standard 8051 verification mode is disabled C externally applied movc accessing internal rom is disabled
device specification semiconductor group 7-18 data memory ('code space') the data memory space consists of an internal and an external memory space. the sab 80c517a contains another 2 kbyte on on-chip ram above the 256-bytes internal ram of the base type sab 80c517. this ram is called xram in this document. external data memory up to 64 kbyte external data memory can be addressed by instructions that use 8-bit or 16-bit indirect addressing. for 8-bit addressing movx instructions in combination with registers r0 and r1 can be used. a 16-bit external memory addressing is supported by eight 16-bit datapointers. registers xpage and syscon are controlling whether data fetches at addresses f800 h to ffff h are done from internal xram or from external data memory. internal data memory the internal data memory is divided into four physically distinct blocks: C the lower 128 bytes of ram including four banks containing eight registers each C the upper 128 byte of ram C the 128 byte special function register area. C a 2 k 8 area which is accessed like external ram (movx-instructions), implemented on chip at the address range from f800 h to ffff h . special function register syscon controls whether data is read or written to xram or external ram. a mapping of the internal data memory is also shown in figure 2. the overlapping address spaces are accessed by different addressing modes (see user's manual sab 80c517). the stack can be located anywhere in the internal data memory. architecture for the xram the contents of the xram is not affected by a reset or hw power down. after power-up the contents is undefined, while it remains unchanged during and after a reset or hw power down if the power supply is not turned off. the additional on-chip ram is logically located in the "external data memory" range at the upper end of the 64 kbyte address range (f800 h -ffff h ). it is possible to enable and disable (only by reset) the xram. if it is disabled the device shows the same behaviour as the parts without xram, i.e. all movx accesses use the external bus to physically external data memory.
device specification semiconductor group 7-19 accesses to xram because the xram is used in the same way as external data memory the same instruction types must be used for accessing the xram. note: if a reset occurs during a write operation to xram, the effect on xram depends on the cycle which the reset is detected at (movx is a 2-cycle instruction): reset detection at cycle 1: the new value will not be written to xram. the old value is not affected. reset detection at cycle 2: the old value in xram is overwritten by the new value. accesses to xram using the dptr there are a read and a write instruction from and to xram which use one of the 16-bit dptr for indirect addressing. the instructions are: movx a, @dptr (read) movx @dptr, a (write) normally the use of these instructions would use a physically external memory. however, in the sab 80c517a the xram is accessed if it is enabled and if the dptr points to the xram address space (dptr f800 h ). accesses to xram using the registers r0/r1 the 8051 architecture provides also instructions for accesses to external data memory range which use only an 8-bit address (indirect addressing with registers r0 or r1). the instructions are: movx a, @ri (read) movx @ri, a (write) in application systems, either a real 8-bit bus (with 8-bit address) is used or port 2 serves as page register which selects pages of 256-byte. however, the distinction, whether port 2 is used as general purpose i/o or as "page address" is made by the external system design. from the devices point of view it cannot be decided whether the port 2 data is used externally as address or as i/o data! hence, a special page register is implemented into the sab 80c517a to provide the possibility of accessing the xram also with the movx @ri instructions, i.e. xpage serves the same function for the xram as port 2 for external data memory.
device specification semiconductor group 7-20 special function register xpage the reset value of xpage is 00 h . xpage can be set and read by software. the register xpage provides the upper address byte for accesses to xram with movx @ri instructions. if the address formed from xpage and ri is less than the xram address range, then an external access is performed. for the sab 80c517a the contents of xpage must be greater or equal than f8 h in order to use the xram. of course, the xram must be enabled if it shall be used with movx @ri instructions. thus, the register xpage is used for addressing of the xram; additionally its contents are used for generating the internal xram select. if the contents of xpage is less than the xram address range then an external bus access is performed where the upper address byte is provided by p2 and not by xpage! therefore, the software has to distinguish two cases, if the movx @ri instructions with paging shall be used: a) access to xram: the upper address byte must be written to xpage or p2; both writes selects the xram address range. b) access to external memory: the upper address byte must be written to p2; xpage will be loaded with the same address in order to deselect the xram. addr. 91 h xpage
device specification semiconductor group 7-21 control of xram in the sab 80c517a there are two control bits in register syscon which control the use and the bus operation during accesses to the additional on-chip ram (xram). special function register syscon reset value of syscon is xxxx xx01b. the control bit xmap0 is a global enable/disable bit for the additional on-chip ram (xram). if this bit is set, the xram is disabled, all movx accesses use external memory via the external bus. in this case the sab 80c517a does not use the additional on-chip ram and is compatible with the types without xram. addr. 0b1 h xmap1 xmap0 syscon bit function xmap0 global enable/disable bit for xram memory. xmap0 = 0: the access to xram (= on-chip xdata memory) is en- abled. xmap0 = 1: the access to xram is disabled. all movx accesses are per- formed by the external bus (reset state). xmap1 control bit for rd /wr signals during accesses to xram; this bit has no effect if xram is disabled (xmap0 = 1) or if addresses exceeding the xram address range are used for movx accesses. xmap1 = 0: the signals rd and wr are not activated during accesses to xram. xmap1 = 1: the signals rd and wr are activated during accesses to xram.
device specification semiconductor group 7-22 xmap0 is hardware protected by an unsymmetric latch. an unintentional disabling of xram could be dangerous since indeterminate values would be read from external bus. to avoid this the xmap-bit is forced to '1' only by reset. additionally, during reset an internal capacitor is loaded. so after reset state xram is disabled. because of the load time of the capacitor xmap0-bit once written to '0' (that is, discharging capacitor) cannot be set to '1' again by software. on the other hand any distortion (software hang up, noise, ...) is not able to load this capacitor, too. that is, the stable status is xram enabled. the only way to disable xram after it was enabled is a reset. the clear instruction for xmap0 should be integrated in the program initialization routine before xram is used. in extremely noisy systems the user may have redundant clear instructions. the control bit xmap1 is relevant only if the xram is accessed. in this case the externa rd and wr signals at p3.6 and p3.7 are not activated during the access, if xmap1 is cleared. for debug purposes it might be useful to have these signals and the addresses at ports 0.2 available. this is performed if xmap1 is set. the behaviour of port 0 and p2 during a movx access depends on the control bits in register syscon and on the state of pin ea . the table 1 lists the various operating conditions. it shows the following characteristics: a) use of p0 and p2 pins during the movx access. bus: the pins work as external address/data bus. if (internal) xram is accessed, the data written to the xram can be seen on the bus in debug mode. i/0: the pins work as input/output lines under control of their latch. b) activation of the rd and wr pin during the access. c) use of internal or external xdata memory. the shaded areas describe the standard operation as each 80c51 device without on-chip xram behaves.
device specification semiconductor group 7-23 s 00 10 x1 dptr < xram address range movx @ri movx @dptr a) p0/p2 y bus b) rd / wr active c) ext. memory is used a) p0/p2 y bus b) rd / wr active c) ext. memory is used a) p0/p2 y bus b) rd / wr active c) ext. memory is used a) p0/p2 y bus b) rd / wr active c) ext. memory is used a) p0/p2 y bus b) rd / wr active c) ext. memory is used a) p0/p2 y bus b) rd / wr active c) ext. memory is used a) p0/p2 y bus b) rd / wr active c) ext. memory is used a) p0/p2 y bus b) rd / wr active c) ext. memory is used modes compatible to 8051 - family 00 10 x1 xmap1, xmap0 ea = 0 a) p0/p2 y bus ( wr -data only) b) rd / wr inactive c) xram is used a) p0/p2 y bus ( wr -data only) b) rd / wr active c) xram is used a) p0/p2 y i/0 b) rd / wr inactive c) xram is used a) p0/p2 y bus ( wr -data only) b) rd / wr active c) xram is used a) p0/p2 y bus ( wr -data only) p2 y i/0 b) rd / wr inactive c) xram is used a) p0/p2 y bus ( wr -data only) p2 y i/0 b) rd / wr active c) xram is used a) p0 y bus p2 y i/0 b) rd / wr active c) ext. memory is used a) p0/p2 y i/0 b) rd / wr inactive c) xram is used a) p0 y bus ( wr -data only) p2 y i/0 b) rd / wr active c) xram is used a) p0 y bus p2 y i/0 b) rd / wr active c) ext. memory is used a) p0 y bus p2 y i/0 b) rd / wr active c) ext. memory is used a) p0 y bus p2 y i/0 b) rd / wr active c) ext. memory is used a) p0 y bus p2 y i/0 b) rd / wr active c) ext. memory is used a) p0 y bus p2 y i/0 b) rd / wr active c) ext. memory is used a) p0 y bus p2 y i/0 b) rd / wr active c) ext. memory is used dptr 3 xram address range xpage < xram addr. page range xpage 3 xram addr. page range xmap1, xmap0 ea = 1 a) p0 y bus p2 y i/0 b) rd / wr active c) ext. memory is used table 1: behaviour of p0/p2 and rd / wr during movx accesses
device specification semiconductor group 7-24 multiple datapointers as a functional enhancement to standard 8051 controllers, the sab 80c517a contains eight 16-bit datapointers. the instruction set uses just one of these datapointers at a time. the selection of the actual datapointer is done in special function register dpsel (data pointer select, addr. 92 h ). figure 3 illustrates the addressing mechanism. figure 3 addressing of external data memory
device specification semiconductor group 7-25 special function registers all registers, except the program counter and the four general purpose register banks, reside in the special function register area. the 81 special function registers include arithmetic registers, pointers, and registers that provide an interface between the cpu and the on-chip peripherals. there are also 128 directly addressable bits within the sfr area. all special function registers are listed in table 1 and table 2. in table 1 they are organized in numeric order of their addresses. in table 2 they are organized in groups which refer to the functional blocks of the sab 80c517a. table 2 special function register address register contents after reset address register contents after reset 80 h 81 h 82 h 83 h 84 h 85 h 86 h 87 h p0 1) sp dpl dph (wdtl) 3) (wdth) 3) wdtrel pcon 0ff h 07 h 00 h 00 h (00 h ) (00 h ) 00 h 00 h 98 h 99 h 9a h 9b h 9c h 9d h 9e h 9f h s0con 1) s0buf ien2 s1con s1buf s1rell reserved reserved 00 h xx h xx00 00x0b 0x00 0000b xx h 00 h xx h xx h 88 h 89 h 8a h 8b h 8c h 8d h 8e h 8f h tcon 1) tmod tl0 tl1 th0 th1 reserved reserved 00 h 00 h 00 h 00 h 00 h 00 h xx h 2) xx h 2) a0 h a1 h a2 h a3 h a4 h a5 h a6 h a7 h p2 1) comsetl comseth comclrl comclrh setmsk clrmsk reserved 0ff h 00 h 00 h 00 h 00 h 00 h 00 h xx h 2 ) 90 h 91 h 92 h 93 h 94 h 95 h 96 h 97 h p1 1) xpage dpsel reserved reserved reserved reserved reserved 0ff h 00 h xxxxx000b xx h 2 ) xx h 2) xx h 2) xx h 2) xx h 2) a8 h a9 h aa h ab h ac h ad h ae h af h ien0 1) ip0 s0rell reserved reserved reserved reserved reserved 00 h 00 h 0d9 h xx h 2 ) xx h 2 ) xx h 2 ) xx h 2 ) xx h 2 ) 1) bit-addressable special function registers 2) x means that the value is indeterminate and the location is reserved 3) ( )... sfrs not user accessable
device specification semiconductor group 7-26 table 2 special function register (contd) address register contents after reset address register contents after reset b0 h b1 h b2 h b3 h b4 h b5 h b6 h b7 h p3 1) syscon reserved reserved reserved reserved reserved reserved 0ff h xxxx xx01b xx h 2 ) xx h 2 ) xx h 2 ) xx h 2 ) xx h 2 ) xx h 2 ) d0 h d1 h d2 h d3 h d4 h d5 h d6 h d7 h psw 1) ircon1 cml0 cmh0 cml1 cmh1 cml2 cmh2 00 h 00 h 00 h 00 h 00 h 00 h 00 h 00 h b8 h b9 h ba h bb h bc h bd h bs h bf h ien1 1) ip1 s0relh s1relh reserved reserved reserved reserved 00 h xx00 0000b xxxx xx11b xxxx xx11b xx h xx h xx h xx h d8 h d9 h da h db h dc h dd h de h df h adcon0 1) addath addatl p7 adcon1 p8 ctrell ctrelh 00 h 00 h 00 h xx h xxxx 0000b xx h 00 h 00 h c0 h c1 h c2 h c3 h c4 h c5 h c6 h c7 h ircon0 1) ccen ccl1 cch1 ccl2 cch2 ccl3 cch3 00 h 00 h 00 h 00h 00 h 00 h 00 h 00 h e0 h e1 h e2 h e3 h e4 h e5 h e6 h e7 h acc 1) ctcon cml3 cmh3 cml4 cmh4 cml5 cmh5 00 h 0x00 000b 00 h 00 h 00 h 00 h 00 h 00 h c8 h c9 h ca h cb h cc h cd h ce h cf h t2con 1) cc4en crcl crch tl2 th2 ccl4 cch4 00 h 00 h 00 h 00 h 00 h 00 h 00 h 00 h e8 h e9 h ea h eb h ec h ed h ee h ef h p4 1) md0 md1 md2 md3 md4 md5 arcon 0ff h xx h xx h xx h xx h xx h xx h 0xxx xxxxb 1) bit-addressable special function registers 2) x means that the value is indeterminate and the location is reserved 3) ( )... sfrs not user accessable
device specification semiconductor group 7-27 table 2 special function register (contd) address register contents after reset address register contents after reset f0 h f1 h f2 h f3 h f4 h f5 h f6 h f7 h b 1) reserved cml6 cmh6 cml7 cmh7 cmen cmsel 00 h xx h 00 h 00 h 00 h 00 h 00 h 00 h f8 h f9 h fa h fb h fc h fd h fe h ff h p5 1) reserved p6 reserved reserved (is0) (is1) reserved 0ff h xx h 0ff h xx h xx h xx h xx h xx h 1) bit-addressable special function registers 2) x means that the value is indeterminate and the location is reserved 3) ( )... sfrs not user accessable
device specification semiconductor group 7-28 table 3 special function registers - functional blocks block symbol name address contents after reset cpu acc b dph dpl dpsel psw sp accumulator b-register data pointer, high byte data pointer, low byte data pointer select register program status word register stack pointer 0e0 h 1) 0f0 h 1) 83 h 82 h 92 h 0d0 h 1) 81 h 00 h 00 h 00 h 00 h xxxx x000b 3) 00 h 07 h a/d- converter adcon0 adcon1 addath addatl a/d converter control register 0 a/d converter control register 1 a/d converter data reg. high byte a/d converter data reg. low byte 0d8 h 1) 0dc h 0d9 h 0da h 00 h 00 h 00 h 00 h interrupt system ien0 ctcon 2) ien1 ien2 ip0 ip1 ircon0 ircon1 tcon 2) tcon 2) interrupt enable register 0 com. timer control register interrupt enable register 1 interrupt enable register 2 interrupt priority register 0 interrupt priority register 1 interrupt request control register interrupt request control register timer control register timer 2 control register 0a8 h 1) 0e1 h 0b8 h 1) 9a h 0a9 h 0b9 h 0c0 h 1) 0d1 h 88 h 1) 0c8 h 00 h 0x00 0000b 00 h xx00 00x0b 3) 00 h xx00 0000b 00 h 00 h 00 h 00 h mul/div unit arcon md0 md1 md2 md3 md4 md5 arithmetic control register multiplication/division register 0 multiplication/division register 1 multiplication/division register 2 multiplication/division register 3 multiplication/division register 4 multiplication/division register 5 0ef h 0e9 h 0ea h 0eb h 0ec h 0ed h 0ee h 0xxxx xxxxb xx h xx h xx h xx h xx h xx h 1) bit-addressable special function registers 2) this special function register is listed repeatedly since some bits of it also belong to other functional blocks. 3) x means that the value is indeterminate and the location is reserved
device specification semiconductor group 7-29 table 3 special function registers - functional blocks (contd) block symbol name address contents after reset compare/ capture- unit (ccu) timer 2 ccen cc4en cch1 cch2 cch3 cch4 ccl1 ccl2 ccl3 ccl4 cmen cmh0 cmh1 cmh2 cmh3 cmh4 cmh5 cmh6 cmh7 cml0 cml1 cml2 cml3 cml4 cml5 cml6 cml7 cmsel crch crcl comsetl comseth comclrl comclrh setmsk comp./capture enable reg. comp./capture enable 4 reg. comp./capture reg. 1, high byte comp./capture reg. 2, high byte comp./capture reg. 3, high byte comp./capture reg. 4, high byte comp./capture reg. 1, low byte comp./capture reg. 2, low byte comp./capture reg. 3, low byte comp./capture reg. 4, low byte compare enable register compare register 0, high byte compare register 1, high byte compare register 2, high byte compare register 3, high byte compare register 4, high byte compare register 5, high byte compare register 6, high byte compare register 7, high byte compare register 0, low byte compare register 1, low byte compare register 2, low byte compare register 3, low byte compare register 4, low byte compare register 5, low byte compare register 6, low byte compare register 7, low byte compare input select com./rel./capt. reg. high byte com./rel./capt. reg. low byte compare register, low byte compare register, high byte compare register, low byte compare register, high byte mask register, concerning comset 0c1 h 0c9 h 0c3 h 0c5 h 0c7 h 0cf h 0c2 h 0c4 h 0c6 h 0ce h 0f6 h 0d3 h 0d5 h 0d7 h 0e3 h 0e5 h 0e7 h 0f3 h 0f5 h 0d2 h 0d4 h 0d6 h 0e2 h 0e4 h 0e6 h 0f2 h 0f4 h 0f7 h 0cb h 0ca h 0a1 h 0a2 h 0a3 h 0a4 h 0a5 h 00 h 00 h 00 h 00 h 00 h 00 h 00 h 00 h 00 h 00 h 00 h 00 h 00 h 00 h 00 h 00 h 00 h 00 h 00 h 00 h 00 h 00 h 00 h 00 h 00 h 00 h 00 h 00 h 00 h 00 h 00 h 00 h 00 h 00 h 00 h 1) bit-addressable special function registers 2) this special function register is listed repeatedly since some bits of it also belong to other functional blocks. 3) x means that the value is indeterminate and the location is reserved
device specification semiconductor group 7-30 compare/ capture- unit (ccu), (contd) clrmsk ctcon ctrelh ctrell th2 tl2 t2con mask register, concerning comclr com. timer control reg. com. timer rel. reg., high byte com. timer rel. reg., low byte timer 2, high byte timer 2, low byte timer 2 control register 0a6 h 0e1 h 0df h 0de h 0cd h 0cc h 0c8 h 1) 00 h 0x00 0000b 3) 00 h 00 h 00 h 00 h 00 h ports p0 p1 p2 p3 p4 p5 p6 p7 p8 port 0 port 1 port 2 port 3 port 4 port 5 port 6, port 7, analog/digital input port 8, analog/digital input, 4-bit 80 h 1) 90 h 1) 0a0 h 1) 0b0 h 1) 0e8 h 1) 0f8 h 1) 0fa h 0db h 0dd h 0ff h 0ff h 0ff h 0ff h 0ff h 0ff h 0ff h pow.sav. modes pcon power control register 87 h 00 h serial channels adcon 02) pcon 2) s0buf s0con s0rell s0relh s1buf s1con s1rell s1relh a/d converter control reg. power control register serial channel 0 buffer reg. serial channel 0 control reg. serial channel 0 reload reg., low byte serial channel 0 reload reg., high byte serial channel 1 buffer reg., serial channel 1 control reg. serial channel 1 reload reg., low byte serial channel 1 relaod reg., high byte 0d8 h 1) 87 h 99 h 98 h 1) b2 h ba h 9c h 9b h 9d h bb h 00 h 00 h 0xx h 3) 00 h d9 h xxxx.xx11b 3) 0xx h 3) 0x00 000b 3) 00 h xxxx.xx11b 3) 1) bit-addressable special function registers 2) this special function register is listed repeatedly since some bits of it also belong to other functional blocks. 3) x means that the value is indeterminate and the location is reserved table 3 special function registers - functional blocks (contd) block symbol name address contents after reset
device specification semiconductor group 7-31 timer 0/ timer 1 tcon th0 th1 tl0 tl1 tmod timer control register timer 0, high byte timer 1, high byte timer 0, low byte timer 1, low byte timer mode register 88 h 1) 8c h 8d h 8a h 8b h 89 h 00 h 00 h 00 h 00 h 00 h 00 h watchdog ien0 2) ien1 2) ip0 2) ip1 2) wdtrel interrupt enable register 0 interrupt enable register 1 interrupt priority register 0 interrupt priority register 1 watchdog timer reload reg. 0a8 h 1) 0b8 h 1) 0a9 h 0b9 h 86 h 00 h 00 h 00 h xx00 0000b 3) 00 h 1) bit-addressable special function registers 2) this special function register is listed repeatedly since some bits of it also belong to other functional blocks. 3) x means that the value is indeterminate and the location is reserved table 3 special function registers - functional blocks (contd) block symbol name address contents after reset
device specification semiconductor group 7-32 a/d converter in the sab 80c517a a new high performance / high-speed 12-channel 10-bit a/d-converter is implemented. its successive approximation technique provides 7 m s con-version time ( f osc = 16 mhz). the conversion principle is upward compatible to the one used in the sab 80c517. the main functional blocks are shown in figure 4. the comparator is a fully differential comparator for a high power supply rejection ratio and very low offset voltages. the capacitor network is binary weighted providing genuine 10-bit resolution. the table below shows the sample time t s and the conversion time t c , which are dependend on f osc and a new prescaler (see also bit adcl in sfr adcon 1). f osc [mhz] prescaler f adc [mhz] sample time t s [ m s] conversion time (incl. sample time) t c [ m s] 12 ? 8 1.5 2.67 9.33 ? 16 0.75 5.33 18.66 16 ? 8 2.0 2.0 7.0 ? 16 1.0 4.0 14.0 18 ? 8 C C C ? 16 1.125 3.55 12.4
device specification semiconductor group 7-33 figure 4 block diagram a/d converter
device specification semiconductor group 7-34 compare/capture unit (ccu) the compare/capture unit is a complex timer/register array for applications that require high speed i/o pulse width modulation and more timer/counter capabilities. the ccu contains C one 16-bit timer/counter (timer2) with 2-bit prescaler, reload capability and a max. clock frequency of f osc/12 (1 mhz with a 12 mhz crystal). C one 16-bit timer (compare timer) with 8-bit prescaler, reload capability and a max. clock frequency of f osc/2 (6 mhz with a 12 mhz crystal). C fifteen 16-bit compare registers. C five of which can be used as 16-bit capture registers. C up to 21 output lines controlled by the ccu. C nine interrupts which can be generated by ccu-events. figure 5 shows a block diagram of the ccu. eight compare registers (cm0 to cm7) can individually be assigned to either timer 2 or the compare timer. diagrams of the two timers are shown in figures 6 and 7. the four compare/capture registers, the compare/reload/capture register and the comset/comclr register are always connected to timer 2. depending on the register type and the assigned timer three different compare modes can be selected. table 3 illustrates possible combinations and the corresponding output lines.
device specification semiconductor group 7-35 table 4 ccu compare configuration assigned timer compare register compare output possible modes timer 2 crch/crcl cc1h/cc1l cc2h/cc2l cc3h/cc3l cc4h/cc4l cc4h/cc4l : cc4h/cc4l comsetl/comseth comclrl/ comclrh cm0h/cm0l : cm7h/cm7l p1.0/int3 /cc0 p1.1/int4/cc1 p1.2/int5/cc2 p1.3/int6/cc3 p1.4/int2 /cc4 p5.0/ccm0 : p5.7/ccm7 p5.0/ccm0 : p5.7/ccm7 p5.0/ccm0 : p5.7/ccm7 p4.0/cm0 : p4.7/cm7 comp. mode 0, 1 + reload comp. mode 0, 1 comp. mode 0, 1 comp. mode 0, 1 comp. mode 0, 1 comp. mode 1 : comp. mode 1 comp. mode 2 : comp. mode 2 comp. mode 2 : comp. mode 2 comp. mode 1 : comp. mode 1 compare timer cm0h/cm0l : cm7h/cm7l p4.0/cm0 : p4.7/cm7 comp. mode 0 (with shadow latches) : comp. mode 0 (with shadow latches)
device specification semiconductor group 7-36 figure 5 block diagram of the compare/capture unit
device specification semiconductor group 7-37 compare in compare mode, the 16-bit values stored in the dedicated compare registers are compared to the contents of the timer 2 register or the compare timer register. if the count value in the timer registers matches one of the stored value, an appropriate output signal is generated at the corresponding pin(s) and an interrupt is requested. three compare modes are provided: mode 0: upon a match the output signal changes from low to high. it returns to low level at timer overflow. mode 1: the transition of the output signal can be determined by software. a timer overflow signal does not affect the compare-output. mode 2: in compare mode 2 the concurrent compare output pins on port 5 are used as follows (see figure 9) C when a compare match occurs with register comset, a high level appears at the pins of port 5 whose corresponding bits in the mask register setmsk (address 0a5 h ) are set. C when a compare match occurs in register comclr, a low level appears at the pins of port 5 whose corresponding bits in the mask register clrmsk (address 0a6 h ) are set. additionally the port 5 pins used for compare mode 2 may also be directly written to by write instructions to sfr p5. of course, the pins can also be read under program control. compare registers cm0 to cm7 use additional compare latches when operated in mode 0. figure 8 shows the function of these latches. the latches are implemented to prevent from loss of compare matches which may occur when loading of the compare values is not correlated with the timer count. the compare latches are automatically loaded from the compare registers at every timer overflow. capture this feature permits saving of the actual timer/counter contents into a selected register upon an external event or a software write operation. two modes are provided to 'freeze' the current 16-bit value of timer 2 registers into a dedicated capture register. mode 0: capture is performed in response to a transition at the corresponding port 1 pins cc0 to cc3. mode 1: write operation into the low-order byte of the dedicated capture register causes the timer 2 contents to be latched into this register.
device specification semiconductor group 7-38 reload of timer 2 a 16-bit reload can be performed with the 16-bit crc register, which is a concatenation of the 8-bit registers crcl and crch. there are two modes from which to select: mode 0: reload is caused by a timer overflow (auto-reload). mode 1: reload is caused in response to a negative transition at pin t2ex (p1.5), which can also request an interrupt. timer/counters 0 and 1 these timer/counters are fully compatible with timer/counter 0 or 1 of the sab 8051 and can operate in four modes: mode 0: 8-bit timer/counter with 32:1 prescaler mode 1: 16-bit timer/counter mode 2: 8-bit timer/counter with 8-bit auto reload mode 3: timer/counter 0 is configured as one 8-bit timer; timer/counter 1 in this mode holds its count. external inputs int0 and int1 can be programmed to function as a gate for timer/counters 0 and 1 to facilitate pulse width measurements.
device specification semiconductor group 7-39 figure 6 block diagram of timer 2
device specification semiconductor group 7-40 figure 7 block diagram of the compare timer figure 8 compare-mode 0 with registers cm0 to cm7
device specification semiconductor group 7-41 figure 9 compare-mode 2 (port 5 only)
device specification semiconductor group 7-42 interrupt structure the sab 80c517a has 17 interrupt vectors with the following vector addresses and request flags. each interrupt vector can be individually enabled/disabled. the response time to an interrupt request is more than 3 machine cycles and less than 9 machine cycles. external interrupts 0 and 1 can be activated by a low-level or a negative transition (selectable) at their corresponding input pin, external interrupts 2 and 3 can be programmed for triggering on a negative or a positive transition. the external interrupts 2 to 6 are combined with the corresponding alternate functions compare (output) and capture (input) on port 1. for programming of the priority levels the interrupt vectors are combined to pairs or triples. each pair or triple can be programmed individually to one of four priority levels by setting or clearing one bit in special function register ip0 and one in ip1. figure 9 shows the interrupt request sources, the enabling and the priority level structure. table 5 interrupt sources and vectors interrupt request flags interrupt vector address interrupt source ie0 tf0 ie1 tf1 ri0 + ti0 tf2 + exf2 iadc iex2 iex3 iex4 iex5 iex6 ri1/ti1 icmp0 to icmp7 ctf ics icr 0003 h 000b h 0013 h 001b h 0023 h 002b h 0043 h 004b h 0053 h 005b h 0063 h 006b h 0083 h 0093 h 009b h 00a3 h 00ab h external interrupt 0 timer 0 overflow external interrupt 1 timer 1 overflow serial channel 0 timer 2 overflow/ext. reload a/d converter external interrupt 2 external interrupt 3 external interrupt 4 external interrupt 5 external interrupt 6 serial channel 1 compare match interrupt of compare registers cm0- cm7 assigned to timer 2 compare timer overflow compare match interrupt of compare register comset compare match interrupt of compare register comclr
device specification semiconductor group 7-43 figure 10 interrupt structure of the sab 80c517a
device specification semiconductor group 7-44 figure 10 interrupt structure of the sab 80c517a (cont'd)
device specification semiconductor group 7-45 figure 10 interrupt structure of the sab 80c517a (cont'd)
device specification semiconductor group 7-46 multiplication/division unit this on-chip arithmetic unit provides fast 32-bit division, 16-bit multiplication as well as shift and normalize features. all operations are integer operation. the mdu consists of six registers used for operands and results and one control register. operation of the mdu can be divided in three phases: operation of the mdu to start an operation, register md0 to md5 (or arcon) must be written to in a certain se- quence according to table 5 or 6. the order the registers are accessed determines the type of the operation. a shift operation is started by a final write operation to register arcon (see also the register description). operation result remainder execution time 32-bit/16-bit 32-bit 16-bit 6 t cy 1) 16-bit/16-bit 16-bit 16-bit 4 t cy 16-bit * 16-bit 32-bit C4 t cy 32-bit normalize C C 6 t cy 2) 32-bit shift left/right C C 6 t cy 2) 1) 1 t cy = 1 m s @ 12 mhz oscillator frequency. 2) the maximal shift speed is 6 shifts/cycle.
device specification semiconductor group 7-47 table 6 performing a mdu-calculation table 7 shift operation with the mdu abbreviations d'end : dividend, 1st operand of division d'or : divisor, 2nd operand of division m'and : multiplicand, 1st operand of multiplication m'or : multiplicator, 2nd operand of multiplication pr : product, result of multiplication rem : remainder quo : quotient, result of division ...l : means, that this byte is the least significant of the 16-bit or 32-bit operand ...h : means, that this byte is the most significant of the 16-bit or 32-bit operand i/o ports the sab 80c517a has seven 8-bit i/o ports and two input ports (8-bit and 4-bit wide). port 0 is an open-drain bidirectional i/o port, while ports 1 to 6 are quasi-bidirectional i/o ports operation 32 bit/16 bit 16 bit/16 bit 16 bit * 16 bit first write last write md0 d'endl md1 d'end md2 d'end md3 d'endh md4 d'orl md5 d'orh md0 d'endl md1 d'endh md4 d'orl md5 d'orh md0 m'andl md4 m'orl md1 m'andh md5 m'orh first read last read md0 quol md1 quo md2 quo md3 quoh md4 reml md5 remh md0 quol md1 quoh md4 reml md5 remh md0 prl md1 md2 md3 prh operation normalize, shift left, shift right first write last write first read last read md0 least significant byte md1 md2 md3 most significant byte arcon start of conversion md0 least significant byte md1 md2 md3 most significant byte
device specification semiconductor group 7-48 with internal pull-up resistors. that means, when configured as inputs, ports 1 to 6 will be pulled high and will source current when externally pulled low. port 0 will float when configured as input. port 0 and port 2 can be used to expand the program and data memory externally. during an access to external memory, port 0 emits the low-order address byte and reads/writes the data byte, while port 2 emits the high-order address byte. in this function, port 0 is not an open-drain port, but uses a strong internal pull-up fet. port 1, 3, 4, 5 and port 6 provide several alternate functions. please see the "pin description" for details. port pins show the information written to the port latches, when used as general purpose port. when an alternate function is used, the port pin is controlled by the respective peripheral unit. therefore the port latch must contain a "one" for that function to operate. the same applies when the port pins are used as inputs. ports 1, 3, 4 and 5 are bit- addressable. the sab 80c517a has two dual-purpose input ports. the twelve port lines at port 7 and port 8 can be used as analog inputs for the a/d converter. if input voltages at p7 and p8 meet the specified digital input levels ( v il and v ih ) the port can also be used as digital input port. in hardware power down mode the port pins and several control lines enter a floating state. for more details see the section about hardware power down mode.
device specification semiconductor group 7-49 power saving modes the sab 80c517a provides C due to siemens acmos technology C four modes in which pow- er consumption can be significantly reduced. C the slow down mode the controller keeps up the full operating functionality, but is driven with one eighth of its normal operating frequency. slowing down the frequency remarkable reduces power consumption. C the idle mode the cpu is gated off from the oscillator, but all peripherals are still supplied with the clock and continue working. C the power down mode operation of the sab 80c517a is stopped, the on-chip oscillator and the rc-oscillator are turned off. this mode is used to save the contents of the internal ram with a very low standby current. C the hardware power down mode operation of the sab 80c517a is stopped, the on-chip oscillator and the rc-oscillator are turned off. the pin hwpd controls this mode. port pins and several control lines enter a floating state. the hardware power down mode is independent of the state of pin pe /swd. hardware enable for software controlled power saving modes a dedicated pin pe /swd) of the sab 80c517a allows to block the software controlled power saving modes. since this pin is mostly used in noise-critical application it is combined with an automatic start of the watchdog timer. pe /swd = v ih (logic high level): using of the power saving modes is not possible. the watchdog timer starts immediately after reset. the instruction sequences used for entering of power saving modes will not affect the normal operation of the device. pe /swd = v il (logic low level): all power saving modes can be activated by software. when left unconnected, pin /pe /swd is pulled high by a weak internal pullup. this is done to provide system protection on default. the logic-level applied to pin pe /swd can be changed during program execution to allow or to block the use of the power saving modes without any effect on the on-chip watchdog circuitry.
device specification semiconductor group 7-50 requirements for hardware power down mode there is no dedicated pin to enable the hardware power down mode. nevertheless for a correct function of the hardware power down mode the oscillator watchdog unit including its internal rc oscillator is needed. therefore this unit must be enabled by pin owe (owe = high). however, the control pin pe /swd has no control function in this mode. it enables and disables only the use of software controlled power saving modes. software controlled power saving modes all of these modes are entered by software. special function register pcon (power control register, address is 87 h ) is used to select one of these modes. slow down mode during slow down operation all signal frequencies that are derived from the oscillator clock, are divided by eight, also the clockout signal and the watchdog timer count. the slow down mode is enabled by setting bit sd. the controller actually enters the slow down mode after a short synchronisation period (max. 2 machine cycles). the slow down mode is disabled by clearing bit sd. idle mode during idle mode all peripherals of the sab 80c517a (except for the watchdog timer) are still supplied by the oscillator clock. thus the user has to take care which peripheral should continue to run and which has to be stopped during idle. the procedure to enter the idle mode is similar to the one entering the power down mode. the two bits idle and idls must be set by two consecutive instructions to minimize the chance of unintentional activating of the idle mode. there are two ways to terminate the idle mode: C the idle mode can be terminated by activating any enabled interrupt. this interrupt will be serviced and the instruction to be executed following the reti instruction will be the one following the instruction that set the bit idls. C the other way to terminate the idle mode, is a hardware reset. since the oscillator is still running, the hardware reset must be held active only for two machine cycles for a complete reset. normally the port pins hold the logical state they had at the time idle mode was activated. if some pins are programmed to serve their alternate functions they still continue to output during idle mode if the assigned function is on. the control signals ale and hold at logic high levels psen (see table 8).
device specification semiconductor group 7-51 power down mode the power down mode is entered by two consecutive instructions directly following each other. the first instruction has to set the flag pde (power down enable) and must not set pds (power down set). the following instruction has to set the start bit pds. bits pde and pds will automatically be cleared after having been set. the instruction that sets bit pds is the last instruction executed before going into power down mode. the only exit from power down mode is a hardware reset. the status of all output lines of the controller can be looked up in table 8. hardware controlled power down mode the pin hwpd controls this mode. if it is on logic high level (inactive) the part is running in the normal operating modes. if pin hwpd gets active (low level) the part enters the hardware power down mode; this is independent of the state of pin pe /swd. hwpd is sampled once per machine cycle. if it is found active, the device starts a complete internal reset sequence. the watchdog timer is stopped and its status flag wdts is cleared exactly the same effects as a hardware reset. in this phase the power consumption is not yet reduced. after completion of the internal reset both oscillators of the chip are disabled. at the same time the port pins and several control lines enter a floating state as shown in table 8. in this state the power consumption is reduced to the power down current ipd. also the supply voltage can be reduced. table 8 also lists the voltages which may be applied at the pins during hardware power down mode without affecting the low power consumption. termination of hwpd mode: this power down state is maintained while pin hwpd is held active. if hwpd goes to high level (inactive state) an automatic start up procedure is performed: C first the pins leave their floating condition and enter their default reset state (as they had immediately before going to float state). C both oscillators are enabled (only if owe = high). the oscillator watchdogs rc oscillator starts up very fast (typ. less than 2 microseconds). C because the oscillator watchdog is active it detects a failure condition if the on-chip oscillator hasnt yet started. hence, the watchdog keeps the part in reset and supplies the internal clock from the rc oscillator. C finally, when the on-chip oscillator has started, the oscillator watchdog releases the part from reset with oscillator watchdog status flag not set. when automatic start of the watchdog was enabled (pe /swd connected to v cc ) , the watchdog timer will start, too (with its default reload value for time-out period). C the reset pin overrides the hardware power down function, i.e. if reset gets active during hardware power down it is terminated and the device performs the normal reset function. (thus, pin reset has to be inactive during hardware power down mode). power down mode the power down mode is entered by two consecutive instructions directly following each other. the first instruction has to set the flag pde (power down enable) and must not set pds (power down set). the following instruction has to set the start bit pds. bits pde and pds will automatically be cleared after having been set. the instruction that sets bit pds is the last instruction executed before going into power down mode. the only exit from power down mode is a hardware reset. the status of all output lines of the controller can be looked up in table 8. hardware controlled power down mode the pin hwpd controls this mode. if it is on logic high level (inactive) the part is running in the normal operating modes. if pin hwpd gets active (low level) the part enters the hardware power down mode; this is independent of the state of pin pe /swd. hwpd is sampled once per machine cycle. if it is found active, the device starts a complete internal reset sequence. the watchdog timer is stopped and its status flag wdts is cleared exactly the same effects as a hardware reset. in this phase the power consumption is not yet reduced. after completion of the internal reset both oscillators of the chip are disabled. at the same time the port pins and several control lines enter a floating state as shown in table 8. in this state the power consumption is reduced to the power down current ipd. also the supply voltage can be reduced. table 8 also lists the voltages which may be applied at the pins during hardware power down mode without affecting the low power consumption. termination of hwpd mode: this power down state is maintained while pin hwpd is held active. if hwpd goes to high level (inactive state) an automatic start up procedure is performed: C first the pins leave their floating condition and enter their default reset state (as they had immediately before going to float state). C both oscillators are enabled (only if owe = high). the oscillator watchdogs rc oscillator starts up very fast (typ. less than 2 micro seconds) C because the oscillator watchdog is active it detects a failure condition if the on-chip oscillator hasnt yet started. hence, the watchdog keeps the part in reset and supplies the internal clock from the rc oscillator. C finally, when the on-chip oscillator has started, the oscillator watchdog releases the part from reset with oscillator watchdog status flag not set when automatic start of the watchdog was enabled (pe /swd connected to v cc ) , the watchdog timer will start, too (with its default reload value for time-out period). C the reset pin overrides the hardware power down function, i.e. if reset gets active during hardware power down it is terminated and the device performs the normal reset function. (thus, pin reset has to be inactive during hardware power down mode).
device specification semiconductor group 7-52 table 8 status of all pins during idle mode, power down mode and hardware power down mode pins idle mode last instruction executed from power down mode last instruction executed from hardware power down internal rom external rom internal rom external rom status voltage range at pin p0 data float data float p1 data alt outputs data alt outputs data last outputs data last outputs floating p2 data address data data output p3 data alt outputs data alt outputs data last output data last output outputs p4 data alt outputs data alt outputs data last outputs data last output disabled v ss v in v cc p5 data alt output data alt output data last output data last output input p6 data alt output data alt output data last output data last output function p7 p8 ea active input v in = v cc or v in = v ss pe /swd active input pull-up disabled v in = v cc or v in = v ss xtal1 active output pin may not be driven xtal2 disabled input functions v ss v in v cc
device specification semiconductor group 7-53 table 8 status of all pins during idle mode, power down mode and hardware power down mode (contd) pins idle mode last instruction executed from power down mode last instruction executed from hardware power down internal rom external rom internal rom external rom status voltage range at pin psen floating outp. dis- abled input functions v ss v in v cc ale varef vagnd active sup- ply pins v agnd v in v cc owe active input, must be high pull-up disabl. v in = v cc reset active input must be high v in = v cc ro floating output v ss v in v cc
device specification semiconductor group 7-54 serial interfaces the sab 80c517a has two serial interfaces. both interfaces are full duplex and receive buffered. they are functionally identical with the serial interface of the sab 8051 when working as asynchronous channels. serial interface 0 additionally has a synchronous mode. table 9 shows possible configurations and the according baud rates. table 9 baud rate generation mode mode 0 C 8-bit syn- chron- ous channel baud- rate f o s c =1 2 mhz f osc = 16 mhz f osc = 18 mhz 1mhz 1.33 mhz 1.5 mhz C C C derived from f osc C mode mode 1 mode b 8-bit uart baud- rate f osc = 12 mhz f osc = 16 mhz f osc = 18 mhz 1 baud C 62.5 kbaud 1 baud C 83 kbaud 1 baud C 93.7 kbaud 183 baud C 375 kbaud 244 baud C 500 kbaud 2375 baud C 562.5 kbaud 366 baud C 375 kbaud 244 baud C 500 kbaud 549 baud C 562.5 kbaud derived from timer 1 10-bit baudrate generator 10-bit baudrate generator mode mode 2 mode 3 mode a 9-bit uart baud- rate f osc = 12 mhz f osc = 16 mhz f osc = 18 mhz 187.5 kbaud/ 375 kbaud 250 baud/ 500 kbaud 281.2 kbaud/ 562.5 kbaud 1 baud C 62.5 kbaud 1 baud C 83.3 kbaud 1 baud C 93.7 kbaud 183 baud C 75 kbaud 244 baud C 500 kbaud 275 baud 562.5 kbaud 183 baud C 75 kbaud 244 baud C 500 kbaud 549 baud C 562.5 kbaud derived from f osc/ 2 timer 1 10-bit baudrate generator 10-bit baudrate generator
device specification semiconductor group 7-55 serial interface 0 serial interface 0 can operate in 4 modes: mode 0: shift register mode: serial data enters and exits through r d0. t d0 outputs the shift clock 8 data bits are transmitted/received (lsb first). the baud rate is fixed at 1/12 of the oscillator frequency. mode 1: 8-bit uart, variable baud rate: 10-bit are transmitted (through t d0) or received (through r d0): a start bit (0), 8 data bits (lsb first), and a stop bit (1). on reception, the stop bit goes into rb80 in special function register s0con. the baud rate is variable. mode 2: 9-bit uart, fixed baud rate: 11-bit are transmitted (through t d0) or received (through r d0): a start bit (0), 8 data bits (lsb first), a programmable 9th, and a stop bit (1). on transmission, the 9th data bit (tb80 in s0con) can be assigned to the value of 0 or 1. for example, the parity bit (p in the psw) could be moved into tb80 or a second stop bit by setting tb80 to 1. on reception the 9th data bit goes into rb80 in special function register s0con, while the stop bit is ignored. the baud rate is programmable to either 1/32 or 1/64 of the oscillator frequency. mode 3: 9-bit uart, variable baud rate: 11-bit are transmitted (through t d0) or received (through r d0): a start bit (0), 8 data bits (lsb first), a programmable 9th, and a stop bit (1). in fact, mode 3 is the same as mode 2 in all respects except the baud rate. the baud rate in mode 3 is variable. variable baud rates for serial interface 0 variable baud rates for modes 1 and 3 of serial interface 0 can be derived from either timer 1 or a dedicated baudrate generator. the baud rate is generated by a free running 10-bit timer with programmable reload register. the default value after reset in the reload registers s0rell and s0relh provide a baud rate of 4.8 kbaud (smod = 0) or 9.6 kbaud (smod = 1) at 12 mhz oscillator frequency. this guar- antees full compatibility to the sab 80c517. mode 1.3 baud rate = 2 smod * f osc 64*(2 10 -s0rel) mode 1.3 baud rate =
device specification semiconductor group 7-56 serial interface 1 serial interface 1 can operate in two asynchronous modes: mode a: 9-bit uart, variable baud rate. 11 bits are transmitted (through t d1) or received (through r d1): a start bit (0), 8 data bits (lsb first), a programmable 9th, and a stop bit (1). on transmission, the 9th data bit (tb81 in s1con) can be assigned to the value of 0 or 1. for example, the parity bit (p in the psw) could be moved into tb81 or a second stop bit by setting tb81 to 1. on reception the 9th data bit goes into rb81 in special function register s1con, while the stop bit is ignored. mode b: 8-bit uart, variable baud rate. 10 bits are transmitted (through t d1) or received (through r d1): a start bit (0), 8 data bits (lsb first), and a stop bit (1). on reception, the stop bit goes into rb81 in special function register s1con. variable baud rates for serial interface 1. variable baud rates for modes a and b of serial interface 1 are derived from a dedicated baud rate generator. the baud rate clock (baud rate = ) is generated by an 10-bit free running timer with programmable reload register. mode a, b baudrate = b au d rate c l oc k 16 f osc 32 * (2 10 - srel)
device specification semiconductor group 7-57 watchdog units the sab 80c517a offers two enhanced fail safe mechanisms, which allow an automatic recovery from hardware failure or software upset: C programmable watchdog timer (wdt), variable from 512 m s up to appr. 1.1 s time-out period @12 mhz. upward compatible to sab 80515 watchdog. C oscillator watchdog (owd), monitors the on-chip oscillator and forces the micro- controller into reset state, in case the on-chip oscillator fails, controls the restart from the hardware power down mode and provides clock for a fast internal reset after power-on. programmable watchdog timer the wdt can be activated by hardware or software. hardware initialization is done when pin pe /swd (pin 4) is held high during reset. the sab 80c517a then starts program execution with the wdt running. since pin pe /swd is only sampled during reset (and hardware power down at parts with stepping code ad and later) dynamical switching of the wdt is not possible. software initialization is done by setting bit swdt. a refresh of the watchdog timer is done by setting bits wdt and swdt consecutively. a block diagram of the watchdog timer is shown in figure 11. when a watchdog timer resest occurs, the watchdog timer keeps on running, but a status flag wdts is set. this flag can also be cleared by software. figure 11 block diagram of the programmable watchdog timer
device specification semiconductor group 7-58 oscillator watchdog the unit serves three functions: C monitoring of the on-chip oscillators function. the watchdog supervises the on-chip oscillators frequency; if it is lower than the frequency of the auxiliary rc oscillator in the watchdog unit, the internal clock is supplied by the rc oscillator and the device is forced into reset; if the failure condition disappears (i.e. the on-chip oscillator has again a higher frequency than the rc oscillator), the part executes a final reset phase of appr. 0.25 ms in order to allow the oscillator to stabilize; then the oscillator watchdog reset is released and the part starts program execution again. C restart from the hardware power down mode. if the hardware power down mode is terminated the oscillator watchdog has to control the correct start-up of the on-chip oscillator and to restart the program. the oscillator watchdog function is only part of the complete hardware power down sequence; however, the watchdog works identically to the monitoring function. C fast internal reset after power-on. in this function the oscillator watchdog unit provides a clock supply for the reset before the on-chip oscillator has started. in this case the oscillator watchdog unit also works identically to the monitoring function. if the oscillator watchdog unit is to be used it must be enabled (this is done by applying high level to the control pin owe). figure 12 shows the block diagram of the oscillator watchdog unit. it consists of an internal rc oscillator which provides the reference frequency of the on-chip oscillator. the rc oscillator can be enabled/disabled by the control pin owe. if it is disabled the complete unit has no function.
device specification semiconductor group 7-59 figure 12 functional block diagram of the oscillator watchdog
device specification semiconductor group 7-60 fast internal reset after power-on the sab 80c517a can use the oscillator watchdog unit for a fast internal reset procedure after power-on. normally members of the 8051 family (like the sab 80c517) enter their default reset state not before the on-chip oscillator starts. the reason is that the external reset signal must be internally synchronized and processed in order to bring the device into the correct reset state. especially if a crystal is used the start up time of the oscillator is relatively long (typ. 1 ms). during this time period the pins have an undefined state which could have severe effects e.g. to actuators connected to port pins. in the sab 80c517a the oscillator watchdog unit avoids this situation. however, the oscillator watchdog must be enabled. in this case, after power-on the oscillator watch-dogs rc oscillator starts working within a very short start-up time (typ. less than 2 micro-seconds). in the following the watchdog circuitry detects a failure condition for the on-chip oscillator because this has not yet started (a failure is always recognized if the watchdogs rc oscillator runs faster than the on-chip oscillator). as long as this condition is valid the watchdog uses the rc oscillator output as clock source for the chip rather than the on-chip oscillators output.this allows correct resetting of the part and brings also all ports to the defined state. delay time between power-on and correct reset state: typ.: 18 m s max.: 34 m s instruction set the sab 80c517a / 83c517a-5 has the same instruction set as the industry standard 8051 microcontroller. a pocket guide is available which contains the complete instruction set in functional and hexadecimal order. furtheron it provides helpful information about special function registers, interrupt vectors and assembler directives. literature information title ordering no. microcontroller family sab 8051 pocket guide b158-h6497-x-x-7600
device specification semiconductor group 7-61 absolute maximum ratings ambient temperature under bias................................................................. C 40 to 110 c storage temperature ................................................................................... C 65 to 150 o c voltage on v cc pins with respect to ground ( v ss ) ...................................... C 0.5 v to 6.5 v voltage on any pin with respect to ground ( v ss ) ........................................ C 0.5 to v cc +0.5 v input current on any pin during overload condition ..................................... C 10ma to +10ma absolute sum of all input currents during overload condition...................... |100ma | power dissipation ........................................................................................ 1 w note stresses above those listed under absolute maximum ratings may cause permanent damage of the device. this is a stress rating only and functional operation of the device at these or any other conditions above those indicated in the operational sections of this specification is not implied. exposure to absolute maximum rating conditions for longer periods may affect device reliability. during overload conditions (v in > v cc or v in < v ss ) thevoltage on v cc pins with respect to ground (v ss ) must not exeed the values definded by the absolute maximum ratings. dc characteristics v cc = 5 v + 10 %, C 15 %; v ss = 0 v t a = 0 to 70 o c for the sab 80c517a/83c517a-5 t a = C 40 to 85 o c for the sab 80c517a-t3/83c517a-5-t3 t a = C 4 0 t o 1 1 0 o c for the sab 80c517a-t4/83c517a-5-t4 parameter symbol limit values unit test condition min. max. input low voltage (except ea , reset , hwpd) v il C 0.5 0.2 v cc C 0.1 vC input low voltage (ea) v il1 C 0.5 0.2 v cc C 0.3 vC input low voltage (hwpd , reset ) v il2 C 0.5 0.2 v cc + 0.1 vC input high voltage (except reset , xtal2 and hwpd v ih 0.2 v cc + 0.9 v cc + 0.5 v C input high voltage to xtal2 v ih1 0.7 v cc v cc + 0.5 v C input high voltage to reset and hwpd v ih2 0.6 v cc v cc + 0.5 v C
device specification semiconductor group 7-62 dc characteristics (contd) parameter symbol limit values unit test condition min. max. output low voltage (ports 1, 2, 3, 4, 5, 6) v ol C 0.45 v i ol =1.6 ma 1) output low voltage (ports ale, psen , ro ) v ol1 C0.45v i ol =3.2 ma 1) output high voltage (ports 1, 2, 3, 4, 5, 6) v oh 2.4 0.9 v cc C C v v i oh =C80 m a i oh =C10 m a output high voltage (port 0 in external bus mode, ale, psen , ro ) v oh1 2.4 0.9 v cc C C v v i oh =C800 m a 2) i oh =C80 m a 2) logic input low current (ports 1, 2, 3, 4, 5, 6) i il C 10 C 70 m a v in = 0.45 v logical 1-to-0 transition current (ports 1, 2, 3, 4, 5, 6) i tl C 65 C 650 m a v in = 2 v input leakage current (port 0, ea , ports 7, 8, hwpd ) i li C 100 na 0.45 < v in < v cc 150 na 0.45 < v in < v cc t a > 100 o c input low current to reset for reset i il2 C 10 C100 m a v in = 0.45 v input low current (xtal2) i il3 CC 15 m a v in = 0.45 v input low current (pe /swd, owe) i il4 CC 20 m a v in = 0.45 v pin capacitance c io C10pf f c = 1 mhz t a = 25 o c power supply current: active mode, 12 mhz 7) active mode, 18 mhz 7) idle mode, 12 mhz 7) idle mode, 18 mhz 7) slow down mode, 12 mhz slow down mode, 18 mhz power down mode i cc i cc i cc i cc i cc i cc i pd C C C C C C C 28 37 24 31 12 16 50 ma ma ma ma ma ma m a v cc = 5 v, 4) v cc = 5 v, 4) v cc = 5 v, 5) v cc = 5 v, 5) v cc = 5 v, 6) v cc = 5 v, 6) v cc = 2...5.5 v, 3) notes see page 63.
device specification semiconductor group 7-63 notes for page 62: 1) capacitive loading on ports 0 and 2 may cause spurious noise pulses to be superimposed on the v ol of ale and ports 1, 3, 4, 5 and 6. the noise is due to external bus capacitance discharging into the port 0 and port 2 pins when these pins make 1-to-0 transitions during bus operation. in the worst case (capacitive loading > 100 pf), the noise pulse on ale line may exceed 0.8 v. in such cases it may be desirable to qualify ale with a schmitt-trigger, or use an address latch with a schmitt-trigger strobe input. 2) capacitive loading on ports 0 and 2 may cause the v oh on ale and psen to momentarily fall below the 0.9 v cc specification when the address lines are stabilizing. 3) i pd (power down mode) is measured with: ea = reset = v cc; port0 = port7 = port8 = v cc ; xtal1 = n.c.; xtal2 = v ss ; pe/ swd = owe = v ss ; hwdp = v cc (software power down mode); v ar ef = v cc ; v ag n d = v ss ; all other pins are disconnected. hardware powerdown i pd : owe = v cc or v ss . no certain pin connection for the other pins. 4) i cc (active mode) is measured with: xtal2 driven with t clch, t chcl = 5 ns, v il = v ss + 0.5 v, v ih = v cc C 0.5 v; xtal1 = n.c.; ea = pe /swd = v cc ; port0 = port7 = port8 = v cc ; hwpd = v cc ; reset = v ss all other pins are disconnected. i cc would be slightly higher if a crystal oscillator is used (appr. 1 ma). 5) i cc (idle mode) is measured with all output pins disconnected and with all peripherals disabled; xtal2 driven with t clch , t chcl = 5 ns, v il = v ss + 0.5 v, v ih = v cc C 0.5 v; xtal1 = n.c.; reset = v cc ; hwpd = v cc ; port0 = port7 = port8 = v cc ; ea = pe /swd = v ss ; all other pins are disconnected; 6) i cc (slow down mode) is measured with all output pins disconnected and with all peripher- als disabled; xtal2 driven with t clch, t chcl = 5 ns, v il = v ss + 0.5 v, v ih = v cc C 0.5 v; xtal1 = n.c. ;reset = v cc ; hwpd = v cc ; port7 = port8 = v cc ; ea = pe/ swd = v ss ; all other pins are disconnected; 7) i cc max at other frequencies is given by: active mode: i cc (max) = 1.50* f osc + 10 idle mode: i cc (max) = 1.17* f osc + 10 where f osc is the oscillator frequency in mhz. i cc values are given in ma and measured at v cc = 5 v.
device specification semiconductor group 7-64 a/d converter characteristics v cc = 5 v + 10 %, C 15 %; v ss = 0 v v aref = v cc 5%; v agnd = v ss 0.2 v; t a = 0 to 70 o c for the sab 80c517a/83c517a-5 t a = C 40 to 85 o c for the sab 80c517a-t3/83c517a-5-t3 t a = C 40 to 110 o c for the sab 80c517a-t4/83c517a-5-t4 parameter symbol limit values unit test condition min. typ. max. analog input capacitance c i 25 70 pf sample time (inc. load time) t s 4 t cy 1) m s 2) conversion time (inc. sample time) t c 14 t cy 1) m s 3) total unadjusted error tue 2 lsb v aref = v cc v agnd = v ss v aref supply current i ref 20 m a 4) 1) t cy = (8*2 adcl ) / f osc ; ( t cy = 1/ f adc ; f adc = f osc /(8*2 adcl )) 2) this parameter specifies the time during the input capacitance c i, can be charged/discharged by the external source. it must be guaranteed, that the input capacitance c i, , is fully loaded within this time. 4tcy is 2 m s at the f osc = 16 mhz. after the end of the sample time t s , changes of the analog input voltage have no effect on the conversion result. 3) this parameter includes the sample time t s. 14tcy is 7 m s at f osc = 16 mhz. 4) the differencial impedance r d of the analog reference source must be less than 1 k w at reference supply voltage.
device specification semiconductor group 7-65 ac characteristics v cc = 5 v + 10 %, C 15 %; v ss = 0 v t a = 0 to 70 o c for the sab 80c517a/83c517a-5 t a = C 40 to 85 o c for the sab 80c517a-t3/83c517a-5-t3 t a = C 40 to110 o c for the sab 80c517a-t4/83c517a-5-t4 ( c l for port 0, ale and psen outputs = 100 pf; c l for all other outputs = 80 pf) parameter symbol limit values unit 18 mhz clock variable clock 1/ t clcl = 3.5 mhz to 18 mhz min. max. min. max. program memory characteristics ale pulse width t lhll 71 C2 t clcl C 40 C ns address setup to ale t avll 26 C t clcl C 30 C ns address hold after ale t llax 26 C t clcl C 30 C ns ale to valid instruction t lliv C 122 C 4 t clcl C 100 ns ale to psen t llpl 31 C t clcl C 25 C ns psen pulse width t plph 132 C 3 t clcl C 35 C ns psen to valid instruction t pliv C92C 3 t clcl C 75 ns input instruction hold after psen t pxix 0C0 ns input instruction float after psen t pxiz C46C t clcl C 10 ns address valid after psen t pxav*) 48 C t clcl C 8 C ns address to valid instr in t aviv C 218 C 5 t clcl C 60 ns address float to psen t azpl 0C0 C ns *) interfacing the sab 80c51 7a to devices with float times up to 45 ns is permissible. this limited bus contention will not cause any damage to port 0 drivers.
device specification semiconductor group 7-66 ac characteristics (contd) parameter symbol limit values unit 18 mhz clock variable clock 1/ t clcl = 3.5 mhz to 18 mhz min. max. min. max. external data memory characteristics rd pulse width t rlrh 233 C 6 t clcl C 100 C ns wr pulse width t wlwh 233 C 6 t clcl C 100 C ns address hold after ale t llax2 81 C 2 t clcl C 30 C ns rd to valid data in t rldv C 128 C 5 t clcl C 150 ns data hold after rd t rhdx 0C0 C ns data float after rd t rhdz C51C 2 t clcl C 60 ns ale to valid data in t lldv C 294 C 8 t clcl C 150 ns address to valid data in t avdv C 335 C 9 t clcl C 165 ns ale to wr or rd t llwl 117 217 3 t clcl C 50 3 t clcl +50 ns wr or rd high to ale high t whlh 16 96 t clcl C 40 t clcl +40 ns address valid to wr t avwl 92 C 4 t clcl C 130 C ns data valid to wr transition t qvwx 11 C t clcl C 45 C ns data setup before wr t qvwh 239 C 7 t clcl C 150 C ns data hold after wr t whqx 16 C t clcl C 40 C ns address float after rd t rlaz C0C 0 ns
device specification semiconductor group 7-67 program memory read cycle data memory read cycle mct00096 ale psen port 2 lhll t a8 - a15 a8 - a15 a0 - a7 instr.in a0 - a7 port 0 t avll plph t t llpl t lliv t pliv t azpl t llax t pxiz t pxix t aviv t pxav
device specification semiconductor group 7-68 data memory write cycle mct00098 ale psen port 2 whlh t port 0 wr t wlwh t llwl t qvwx t avll t llax2 t qvwh t avwl t whqx a0 - a7 from ri or dpl from pcl a0 - a7 instr.in data out a8 - a15 from pch p2.0 - p2.7 or a8 - a15 from dph
device specification semiconductor group 7-69 ac characteristics (cont'd) external clock cycle parameter symbol limit values unit variable clock frequ. = 3.5 mhz to 18 mhz min. max. external clock drive oscillator period t clcl 55.6 285 ns high time t chcx 20 t clcl- t chcx ns low time t clcx 20 t clcl- t chcx ns rise time t clch C 20 ns fall time t chcl C 20 ns oscillator frequency 1/ t clc 3.5 18 mhz
device specification semiconductor group 7-70 ac characteristics (cont'd) system clock timing parameter symbol limit values unit 18 mhz clock variable clock 1/ t clcl = 3.5 mhz to 18 mhz min. max. min. max. system clock timing ale to clkout t llsh 349 C7 t clcl C 40 C ns clkout high time t shsl 71 C 2 t clcl C 40 C ns clkout low time t slsh 516 C 10 t clcl C 40 C ns clkout low to ale high t sllh 16 96 t clcl C 40 t clcl +40 ns
device specification semiconductor group 7-71 rom verification characteristics t a = 25c 5c; v cc = 5 v 10%; v ss = 0 v rom verification mode 1 parameter symbol limit values unit min. max. rom verification mode 1 (standard verify mode for not read protected rom) address to valid data t avqv C 48 t clcl ns enable to valid data t elqv C 48 t clcl ns data float after enable t ehoz 048 t clcl ns oscillator frequency 1/ t clcl 46mhz
device specification semiconductor group 7-72 rom verification mode 2 (new verify mode for protected and not protected rom) rom verification mode 2
device specification semiconductor group 7-73 application circuitry for verifying the internal rom
device specification semiconductor group 7-74 ac testing: input, output waveforms ac testing: float waveforms recommended oscillator circuits ac inputs during testing are driven at v cc - 0.5 v for a logic 1 and 0.45 v for a logic 0. timing measure- ments are made at v ihmin for a logic 1 and v ilmax for a logic 0. for timing purposes a port pin is no longer floating when a 100 mv change from load voltage occurs and begins to float when a 100 mv change from the loaded v oh / v ol level occurs. i ol / i oh 3 20 ma.
device specification semiconductor group 7-75 package outlines smd = surface mounted device dimensions in mm dimensions in mm plastic package, p-mqfp-100-2 C smd (plastic metric rectangular flat package) plastic package, p-lcc-84 C smd (plastic leaded chip-carrier)


▲Up To Search▲   

 
Price & Availability of N18-T3

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X